一键导入
scrapling-implementer
Use this skill to implement new scrappers using the Scrapling framework (https://github.com/D4Vinci/Scrapling).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this skill to implement new scrappers using the Scrapling framework (https://github.com/D4Vinci/Scrapling).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implement and run tests adhering to valid architecture and best practices.
Implement and run tests adhering to valid architecture and best practices.
Bump the version of any apps/* module following semver, including syncing dependency references and secondary version files.
Implement and run tests adhering to valid architecture and best practices.
Create and run E2E tests using Playwright in the `apps/e2e` module.
Create new skills for Claude Code. This skill automates the creation of skill directories and boilerplate SKILL.md files.
| name | scrapling-implementer |
| description | Use this skill to implement new scrappers using the Scrapling framework (https://github.com/D4Vinci/Scrapling). |
https://scrapling.readthedocs.io/en/latest/index.html
Follow these steps to implement a new scrapper using Scrapling.
Understand the Target: Identify the target website, the data to be extracted, and the expected output format.
Environment Setup:
scrapling is installed in the appropriate module environment (pip install scrapling or via Poetry).Implementation:
apps/scrapper.StealthySession over standard Fetcher.ProxyRotator.from scrapling.engines._browsers._stealth import StealthySession
from scrapling.fetchers import ProxyRotator
def scrape_target(url, proxies=None):
kwargs = {"solve_cloudflare": True, "hide_canvas": True, "google_search": True}
if proxies:
kwargs["proxy"] = ProxyRotator(proxies)
with StealthySession(**kwargs) as session:
page = session.fetch(url)
# Use Scrapling's API similar to BeautifulSoup or Scrapy
items = []
for el in page.css('.item-class'):
items.append({
'title': el.css_first('.title').text,
'link': el.css_first('a').attributes.get('href')
})
return items
Integration:
.env and scripts\.env.example (config), or to .env.secrets and scripts\.env.secrets.example if it's a secret.scrapling implementations from any existing selenium ones. They should not share execution paths or services that assume a specific browser driver. For example, IndeedScraplingExecutor vs IndeedExecutor.Testing:
pytest.Fetcher or HTTP requests to avoid hitting live servers during CI.apps\commonlib> poetry run pytest .\test\architecture_test.py if needed.Use this skill when the user requests to "create a new scrapper", "implement a scraper", or to specifically pull data using the Scrapling framework.