Skills Plugins MCP Prompt Model 博客 我的中心
开发编程 #cloud #web

botasaurus-cli

Use this skill when the user needs to scrape a web page, check if a URL is accessible, or extract content from behind Cloudflare protection using the command line.

DeepseekModel 官方收录技能 质量 优秀 · 78 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=javimosch-supercli-plugins-botasaurus-cli-skills-quickstart-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name botasaurus-cli description Use this skill when the user needs to scrape a web page, check if a URL is accessible, or extract content from behind Cloudflare protection using the command line. botasaurus-cli — Web Scraping CLI Scrape web pages from the command line with Cloudflare bypass and anti-detect HTTP requests. Wraps Botasaurus (omkarcloud/botasaurus, 4.7k ⭐, MIT). Installation pip install botasaurus # Core scraping engine (~14MB deps) pip install botasaurus-cli # CLI wrapper First run auto-downloads @request dependencies (~14MB). Commands botasaurus-cli web scrape <url> [--json] — Scrape a URL botasaurus-cli web check <url> [--json] — Check if URL is accessible botasaurus-cli self version — Show engine info Critical Caveats & Pitfalls 1. First Run: Dependency Download The first scrape or check call downloads the botasaurus_requests library (~14MB). Always warn the user about this before running for the first time. Downloading @request dependencies... 100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.8/13.8 MB Takes 10-30 seconds depending on connection. Subsequent calls are instant. 2. Python ctypes Requirement Botasaurus requires Python with ctypes support. Some Python installations (e.g., certain pyenv builds, system Python on some distros) lack _ctypes and will fail with: ModuleNotFoundError: No module named '_ctypes' Fix : Use a different Python version ( python3.10 usually works). The CLI auto-detects the correct Python. 3. First Run Timeout The first scrape/check can take 15-30 seconds due to dependency download + setup. Set timeout_ms high enough (120000+ recommended) when calling via supercli. 4. Cloudflare Bypass is Best-Effort Botasaurus's @request decorator handles basic Cloudflare challenges (Connection Challenge via Google Referrer). It may NOT bypass: JS with Captcha challenges (need @browser with bypass_cloudflare=True ) Complex WAF rules (Datadome, PerimeterX) Turnstile CAPTCHAs If a URL fails : Suggest trying with a browser-based tool or direct curl. 5. No Browser Rendering botasaurus-cli uses the @request decorator which sends HTTP requests, not a full browser. It will NOT execute JavaScript or render SPAs (React, Vue, etc.). For JS-heavy sites, use the full Botasaurus framework with @browser decorator. 6. Output Format Default: human-readable summary (URL, status, title, size) --json : structured JSON with all fields Title extraction uses BeautifulSoup ( soupify ) — only works for HTML pages, not JSON APIs 7. Rate Limiting & Politeness Botasaurus does NOT add delays between requests by default. When scraping multiple URLs, the user should add their own rate limiting. Aggressive scraping may get the user's IP blocked. 8. Bot Detection While Botasaurus is designed to bypass bot detection, results vary by target: ✅ Works on most Cloudflare-protected sites ✅ Works on sites with basic bot detection ⚠️ May fail on advanced anti-bot systems (DataDome, Akamai) ⚠️ Headless Chrome ( @browser ) works better but is not exposed in this CLI 9. Error Handling If a scrape fails, common causes: Timeout : Site is slow or blocking. Retry with longer timeout. 403/503 : Blocked by WAF. Try a different approach (browser-based tool). SSL errors : Site has certificate issues. Use --json to see raw response. Empty title : Page is not HTML (JSON, image, etc.) or JS-rendered. 10. API Responses For scraping JSON APIs (REST, GraphQL), scrape returns the raw response length but can't parse it. The user should use curl or dedicated API tools for structured API responses. Prompt Templates "Check if [URL] is accessible and returns 200" "Scrape the title and metadata from [URL]" "Can you access this Cloudflare-protected page: [URL]?" "Tell me if this URL is behind Cloudflare" "Extract the page content from [URL] and return JSON" Typical Workflow → "Check if example.com is accessible" ← botasaurus-cli web check "https://example.com" → "Scrape the title from that page" ← botasaurus-cli web scrape "https://example.com" → "Now try this Cloudflare site: https://nopecha.com/demo/cloudflare" ← botasaurus-cli web scrape "https://nopecha.com/demo/cloudflare" (may fail — JS challenges require @browser mode) Caveats Summary Concern Details First run Downloads ~14MB deps, takes 10-30s ctypes Required. Some Python builds lack it JS rendering Not supported. HTTP-only Captcha Can't solve captchas (use @browser for that) Rate limits No built-in throttling Cloudflare Bypasses Connection Challenge, not JS Captcha
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。