web-crawler-ocr
Skill0 starsChanged 8 months agoMITView on GitHub
웹페이지 크롤링 + 이미지 OCR 자동 분석. "이 URL 분석해줘", "크롤링해줘", "웹사이트 분석", "사이트 크롤링", "경쟁사 분석", "페이지 추출", "analyze this URL", "crawl website", "competitor analysis", "extract webpage" 등을 언급하거나 https:// 또는 http:// URL을 제공하면 자동 실행. Claude의 5MB 이미지 제한을 Gemini OCR(20MB)로 우회.
- Reads credentials
- Deletes or force-pushes
- Installs packages
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- younghai/imi-workspaceedited, first seen Oct 28, 2025
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- younghai/imi-workspace★ 040% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- csv-cleanSkill
- dashboard-prdSkill
- excel-to-csvSkill
- notion-handlerSkill
- transcript-organizerSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Look for https:// or http://
- Distinctive: line 59
Filename: Use domain + timestamp or user-specified name.
- Distinctive: line 81
Always use full absolute paths
- Very specific: line 83
Ensure output directory exists (create with mkdir -p if needed)
- Distinctive: line 89
Use Read tool to open generated markdown file
- Very specific: line 159
Only GEMINI_API_KEY is required (for OCR).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Web Crawler + Gemini OCR Skill v3.0.1
Extract complete web page content (text + images) and save as markdown file. Scrapling + Playwright + trafilatura + Gemini OCR. Fully local crawling.
When to Use This Skill
This skill automatically activates when the user:
- Provides a URL: "https://example.com analyze this"
- Requests web crawling: "crawl this website", "extract webpage content"
- Mentions competitor analysis: "analyze competitor site"
- Needs image OCR from web: "OCR images from this page"
- Wants to bypass 5MB limit: "large images on this site"
What This Skill Does
- 3-Tier Fetcher: HTTP -> Stealth (Camoufox) -> Playwright (with scroll)
- trafilatura + SPA Fallback: Content extraction + RSC/JSON-LD/meta 구조화 데이터
- 3-Source Image Extraction: markdown + HTML img + regex (SPA/동적 사이트 범용)
- Gemini OCR: Extract text from images (up to 20MB per image)
- OCR Inline Insert: OCR results automatically placed at image positions
Instructions
Step 1: Identify the URL
Extract URL(s) from user message:
- Look for
https://orhttp:// - Multiple URLs? Process each one
Step 2: Determine Output Location
Based on user context, choose appropriate path:
Competitor Analysis:
/Users/rhim/Projects/pkm/50-resources/competitor-analysis/Educational Reference (e.g. HFK):
/Users/rhim/Projects/pkm/10-projects/12-education/{project-folder}/General Web Research:
/Users/rhim/Projects/pkm/50-resources/web-research/Filename: Use domain + timestamp or user-specified name.
Step 3: Execute Web Crawler Script
# 1. Install dependencies (first time only)
cd ~/.claude/skills/web-crawler-ocr/scripts && \
python3 -m venv venv && \
source venv/bin/activate && \
pip install -r requirements.txt && \
pip install playwright && playwright install chromium
# 2. Run crawler
cd ~/.claude/skills/web-crawler-ocr/scripts && \
source venv/bin/activate && \
python3 web-crawler.py "<URL>" "<output-path>"
# 3. Dynamic/SPA sites (Olive Young, Coupang, Musinsa etc.)
python3 web-crawler.py "<URL>" "<output-path>" --wait 5000 --scroll --max-images 10Important:
- Always use full absolute paths
- Quote URLs to handle special characters
- Ensure output directory exists (create with
mkdir -pif needed) - Virtual env is created locally in scripts/ folder (not committed to git)
- SPA/동적 사이트는 반드시
--wait+--scroll사용 (lazy-load 트리거 필수)
Step 4: Read and Analyze Results
- Use Read tool to open generated markdown file
- OCR results are already inline at image positions (no manual rearrangement needed)
- Extract key insights
- Summarize for user
Step 5: Suggest Next Steps
- Additional URLs to analyze?
- Comparative analysis needed?
- PKM organization suggestions?
CLI Options
# Basic crawling (static sites)
python3 web-crawler.py <URL> [output.md]
# Dynamic/SPA sites (recommended for Korean e-commerce)
python3 web-crawler.py <URL> --wait 5000 --scroll --max-images 10
# JS rendering wait only (no scroll)
python3 web-crawler.py <URL> --wait 3000
# Force stealth mode (Cloudflare bypass)
python3 web-crawler.py <URL> --stealth
# Text only, no OCR
python3 web-crawler.py <URL> --no-ocr
# Limit OCR images
python3 web-crawler.py <URL> --max-images 5Option Details
| Option | Description |
--wait <ms> | JS 렌더링 대기 (Playwright 사용). SPA 필수 |
--scroll | 페이지 스크롤하여 lazy-load 트리거. --wait과 함께 사용 |
--stealth | Camoufox 브라우저로 Cloudflare 우회 |
--max-images N | OCR 처리할 최대 이미지 수 (기본 15) |
--no-ocr | OCR 건너뛰기 (텍스트만 추출) |
Examples
Example 1: Competitor Cafe Analysis
User: "Analyze this competitor cafe website: https://competitor-cafe.com"
Claude Actions:
mkdir -p /Users/rhim/Projects/pkm/50-resources/competitor-analysis
cd ~/.claude/skills/web-crawler-ocr/scripts && \
source venv/bin/activate && \
python3 web-crawler.py \
"https://competitor-cafe.com" \
/Users/rhim/Projects/pkm/50-resources/competitor-analysis/competitor-cafe-20260315.mdExample 2: Multiple URLs
User: "Analyze these 3 competitor sites"
Claude: Process each URL sequentially, then provide comparative analysis.
Environment Setup
Required Environment Variables
Only GEMINI_API_KEY is required (for OCR). Crawling is fully local.
export GEMINI_API_KEY="your_gemini_key_here"Alternative: .env File
Create ~/.claude/skills/web-crawler-ocr/scripts/.env:
GEMINI_API_KEY=your_gemini_key_hereOptional: Stealth/Dynamic Fetchers
For Cloudflare-protected or JS-heavy sites:
cd ~/.claude/skills/web-crawler-ocr/scripts && \
source venv/bin/activate && \
pip install -r requirements-stealth.txt && \
scrapling installThis installs Playwright + Camoufox browser (~300MB+).
Limitations
- Gemini Free Tier: 15 requests per minute
- Image Limit: Maximum 15 images per page (configurable)
- File Size: 20MB per image maximum
- Stealth/Dynamic: Requires separate install (
requirements-stealth.txt)
Troubleshooting
Blocked by Cloudflare
Install stealth fetchers:
pip install -r requirements-stealth.txt && scrapling installOr use --stealth flag.
Python Package Errors
cd ~/.claude/skills/web-crawler-ocr/scripts
rm -rf venv
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtScript Location
- Main Script:
~/.claude/skills/web-crawler-ocr/scripts/web-crawler.py - Helper Script:
~/.claude/skills/web-crawler-ocr/scripts/gemini-ocr.py - Config Template:
~/.claude/skills/web-crawler-ocr/scripts/.env.example - Requirements:
~/.claude/skills/web-crawler-ocr/scripts/requirements.txt - Stealth Requirements:
~/.claude/skills/web-crawler-ocr/scripts/requirements-stealth.txt - Virtual Env:
~/.claude/skills/web-crawler-ocr/scripts/venv/(created on first run)
Version History
- v3.0.1 (2026-03-15): 동적 사이트 범용 개선
- Playwright 직접 사용 (DynamicFetcher 대체) + 실제 스크롤 구현
- SPA 구조화 데이터 추출 (JSON-LD, NEXT_DATA, RSC payload, meta)
- 3소스 이미지 추출 (markdown + HTML img + regex fallback)
- thumbnail exclude 패턴 정밀화 (한국 이커머스 호환)
- DynamicFetcher/StealthyFetcher bytes->str 변환 수정
- RSC payload 한글 인코딩 수정
- v3.0.0 (2026-03-15): Scrapling + trafilatura로 전환
- Firecrawl API 의존 완전 제거 (로컬 크롤링)
- 3단계 fetcher 에스컬레이션 (HTTP -> Stealth -> Dynamic)
- trafilatura로 콘텐츠 정제 + markdown 변환
- OCR 인라인 자동 삽입 (Step 5 수동 재배치 제거)
- 비동기 이미지 다운로드 (aiohttp)
- --stealth 옵션 추가
- GEMINI_API_KEY만 필요 (FIRECRAWL_API_KEY 제거)
- v2.0.0 (2026-01-29): 외부 CDN 이미지 OCR 자동 처리
- v1.3.0 (2025-01-17): venv 경량화 (203MB -> 54MB)
- v1.2.0 (2025-11-28): OCR 재배치 로직 추가
- v1.1.0 (2025-11-10): Skill 구조 정리
- v1.0.0 (2025-10-29): Initial skill creation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

