scraperapi-research-agent skill
scriptsScraperAPI를 통해 소스를 스크래핑하고 Claude를 사용하여 인용된 Markdown 보고서로 합성함으로써 자율적인 웹 리서치를 수행합니다.
- GitHub 스타
- 10
- 파일
- 3
- 마지막 커밋
- 2026년 8월 7일
- 라이선스
- MIT
- 허용된 도구
- —
scraperapi-research-agent skill은 무엇을 하나요?
scraperapi-research-agent은(는) agent skill입니다. ScraperAPI를 통해 소스를 스크래핑하고 Claude를 사용하여 인용된 Markdown 보고서로 합성함으로써 자율적인 웹 리서치를 수행합니다.
skill의 SKILL.md에서 생성된 요약입니다.
scraperapi-research-agent skill 정보
이 에이전트는 연구자와 개발자가 심층적인 웹 조사를 수행하고 인용된 보고서를 생성할 수 있도록 지원합니다. 에이전트가 실시간 정보를 찾기 위해 내부 학습 데이터를 넘어서야 할 때, 이 SKILL을 로드하여 자율적인 리서치 루프를 수행할 수 있습니다. 프로세스는 사용자 질문을 검색 쿼리로 분해하고, ScraperAPI를 사용하여 Markdown 형식의 웹 콘텐츠를 발견 및 가져온 다음, 해당 페이지를 텍text 아티팩트로 Anthropic Files API에 업로드하는 것으로 시작합니다.
그 다음 Claude는 업로드된 문서들을 요약, 정리된 조사 결과, 인라인 인용을 포함하는 구조화된 Markdown 보고서로 합성합니다. 이 도구는 웹 탐색을 위해 ScraperAPI를, 문서 수집을 위해 Anthropic Files API를 사용합니다. 사용자는 ScraperAPI 크레딧 소비를 관리하기 위한 max-sources와 같은 파라미터 및 최종 보고서를 파일로 저장하기 위한 output 플래그를 사용하여 리서치 범위를 제어할 수 있습니다.
agent가 수행할 수 있는 작업
- 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 키가 모두 필요합니다.