scraperapi-research-agent skill
scriptsScraperAPIを使用してソースをスクレイピングし、Claudeを用いて引用付きのMarkdownレポートに合成することで、自律的なウェブ調査を実行します。
- GitHubスター
- 10
- ファイル
- 3
- 最終コミット
- 2026年8月7日
- ライセンス
- MIT
- 許可されたツール
- —
scraperapi-research-agent skillは何をしますか
scraperapi-research-agentはAgent Skillsです。 ScraperAPIを使用してソースをスクレイピングし、Claudeを用いて引用付きのMarkdownレポートに合成することで、自律的なウェブ調査を実行します。.
skillのSKILL.mdから生成された要約。
scraperapi-research-agent skill について
このエージェントは、研究者や開発者が詳細なウェブ調査を行い、引用付きのレポートを作成することを可能にします。エージェントがリアルタイムの情報を取得するために内部の学習データを越える必要がある場合、このSKILLをロードすることで自律的なリサーチループを実行できます。プロセスは、ユーザーの質問を検索クエリに分解することから始まり、ScraperAPIを使用してMarkdown形式でウェブコンテンツを探索・取得し、それらのページをテキストアーティファクトとしてAnthropic Files APIにアップロードします。
その後、Claudeがアップロードされたドキュメントを合成し、エグゼクティブサマリー、整理された調査結果、およびインライン引用を含む構造化されたMarkdownレポートを作成します。このツールは、ウェブの探索にScraperAPIを、ドキュメントの取り込みにAnthropic Files APIを利用します。ユーザーは、ScraperAPIのクレジット消費を管理するためのmax-sourcesなどのパラメータや、最終的なレポートをファイルに保存するためのoutputフラグを使用して、調査の範囲を制御できます。
エージェントができること
- 1ウェブトピックに関するディープダイブの実行モデルのメモリではなく、実際のウェブソースを使用して、複雑な主題に関する調査を依頼します。
skill の SKILL.md から作成されています。すべてのユースケースは、その引用と照合されています。
scraperapi-research-agent skillのインストール方法
各コマンドはskillフォルダをクライアントのskillsディレクトリにコピーします。読み込むには、クライアントを再起動するか新しいセッションを開始してください。Claude Codeにscraperapi-research-agent skillをインストールする
~/.claude/skills/scraperapi-research-agent/SKILL.md
$ npx degit scraperapi/scraperapi-skills/skills/scraperapi-research-agent ~/.claude/skills/scraperapi-research-agentClaude Code (project)にscraperapi-research-agent skillをインストールする
.claude/skills/scraperapi-research-agent/SKILL.md
$ npx degit scraperapi/scraperapi-skills/skills/scraperapi-research-agent .claude/skills/scraperapi-research-agentCodexにscraperapi-research-agent skillをインストールする
~/.agents/skills/scraperapi-research-agent/SKILL.md
$ npx degit scraperapi/scraperapi-skills/skills/scraperapi-research-agent ~/.agents/skills/scraperapi-research-agentGemini CLIにscraperapi-research-agent skillをインストールする
~/.gemini/skills/scraperapi-research-agent/SKILL.md
$ npx degit scraperapi/scraperapi-skills/skills/scraperapi-research-agent ~/.gemini/skills/scraperapi-research-agentClaude.aiにscraperapi-research-agent skillをインストールする
npx degit scraperapi/scraperapi-skills/skills/scraperapi-research-agent scraperapi-research-agent && zip -r scraperapi-research-agent.zip scraperapi-research-agent # claude.ai → Customize → Skills → + → Create skill → Upload a skill → scraperapi-research-agent.zip
SKILL.md
GitHubで表示ScraperAPI Research Agent
End-to-end autonomous research: ScraperAPI finds and fetches sources → Anthropic Files API ingests them as cited documents → Claude synthesizes a report.
Run it:
# Install dependencies
pip install requests anthropic
# Set env vars
export SCRAPERAPI_API_KEY=your-key
export ANTHROPIC_API_KEY=your-key
# Run
python skills/scraperapi-research-agent/scripts/research_agent.py \
--question "What are the best practices for rate limiting in web APIs?" \
--max-sources 5 \
--output report.md
See scripts/research_agent.py for the full implementation.
Planning Checklist
Before starting a research run, establish:
- Question clarity — Is the question specific enough to produce useful search queries? Vague questions like "tell me about AI" produce noise. Better: "What are the tradeoffs between RAG and fine-tuning for domain-specific LLMs?"
- Source count — How many sources are needed? 3–5 is usually sufficient for a factual summary; 8–10 for a comparative analysis. More sources = more ScraperAPI credits.
- Recency — Does the answer depend on recent events? Search queries will use recent date filters.
- Credit budget — Each source costs ~1 credit to scrape (more with JS rendering). 5 sources = ~5–10 credits total.
- Stop condition — Define when to stop. The default stop is
--max-sources(5). Do not loop indefinitely.
Research Loop
1. PLAN
↓ Claude decomposes the question into 2–3 targeted search queries
2. DISCOVER
↓ ScraperAPI google/search structured endpoint → list of (url, title, snippet)
3. DEDUPLICATE
↓ Filter to top N unique URLs (default: 5), skipping PDFs and low-quality domains
4. FETCH
↓ ScraperAPI scrape each URL as markdown (output_format=markdown)
↓ Skip pages returning < 200 characters (blocked, error pages)
5. UPLOAD
↓ Upload each scraped page to Anthropic Files API as a text/plain artifact
↓ Store file_id for each source
6. SYNTHESIZE
↓ Claude (claude-opus-4-8, adaptive thinking) reads all document artifacts
↓ Returns structured report with inline citations [1], [2]...
7. CLEAN UP
↓ Delete uploaded file artifacts from Anthropic
↓ Write or print the final report
STOP when: max_sources reached, or all queries exhausted (whichever comes first).
Stop Conditions
The agent stops when any of the following is true:
--max-sourcesreached (default: 5) — limits credit spend- All search queries exhausted — no more URLs to explore
--max-creditsexceeded — hard cap on ScraperAPI credit use (optional)
Without stop conditions, a research loop will keep fetching until credits are gone.
Key Parameters
| Flag | Default | Description |
|---|---|---|
--question |
(required) | Research question |
--max-sources |
5 | Max pages to scrape (credit budget) |
--output |
stdout | Write report to file |
--country |
us |
ScraperAPI country code for geo-targeted results |
--model |
claude-opus-4-8 |
Anthropic model for synthesis |
Output Format
See assets/report_template.md for the report structure.
The report is a markdown document with:
- Title derived from the research question
- Summary — 2–3 sentence executive summary
- Findings — structured sections with inline
[N]citations - Sources — numbered bibliography with URLs and titles
Credit Cost Estimate
| Sources | Scraping credits | Anthropic tokens | Total estimate |
|---|---|---|---|
| 3 | ~3 | ~15K in / ~2K out | Low |
| 5 | ~5 | ~25K in / ~3K out | Medium |
| 10 | ~10 | ~50K in / ~5K out | Higher |
Prompt caching applies to the scraped content on repeated runs for the same question.
ScraperAPI Endpoints Used
- Google Search —
GET https://api.scraperapi.com/structured/google/search— finds source URLs - Scrape —
GET https://api.scraperapi.com/?output_format=markdown— fetches page content
See ScraperAPI docs for rate limits and credit costs.
Anthropic APIs Used
- Files API (beta) — uploads scraped pages as document artifacts
- Messages API — Claude synthesizes the report with citations
Requires ANTHROPIC_API_KEY with access to claude-opus-4-8 and the Files API beta.
このスキルのファイル
3scraperapi-research-agent skillに関する質問
Claude Codeにscraperapi-research-agent skillをインストールするには
npx degit scraperapi/scraperapi-skills/skills/scraperapi-research-agent ~/.claude/skills/scraperapi-research-agentを実行してください。Claude Codeは~/.claude/skills(すべてのプロジェクト)または.claude/skills(単一プロジェクト)からskillsを読み込み、説明がタスクに一致する場合にskillを使用します。
scraperapi-research-agent skillはどのクライアントで使用できますか
Agent Skills形式を読み込むすべてのクライアントで使用できます: Claude Code、Codex、Gemini CLI、claude.ai(ZIPとしてアップロード)。skill内のスクリプトは、クライアントがコード実行を許可した場合にのみ実行されます。
このリサーチエージェントは何を生成しますか?
タイトル、エグゼクティブサマリー、インライン引用付きの調査結果、および番号付きの参考文献リストを含む、構造化されたMarkdownレポートを生成します。
エージェントはリソースの使用量をどのように制御しますか?
無限ループを防ぐため、最大ソース数の到達、検索クエリの枯渇、またはクレジット上限への到達といった停止条件を使用します。
このSKILLを実行するにはどのAPIが必要ですか?
ウェブスクレイピング用のScraperAPIキーと、ドキュメント合成用のAnthropic APIキーの両方が必要です。