crawl4ai
codylrn804 제작
Web & Frontend Development요약
AI-powered web scraping framework for extracting structured data from websites.
설명
이 스킬이 하는 일
Crawl4ai is a Python web scraping framework that combines browser automation with AI-assisted parsing to extract structured data from websites. It handles JavaScript-rendered pages, injects custom JS, and outputs clean markdown, HTML, or structured JSON.
Handles JavaScript-rendered content natively without requiring a separate browser driver setup, unlike BeautifulSoup or Scrapy alone.
사용 시점
- Scraping product prices and names from an e-commerce site
- Extracting article titles from a news or blog page
- Pulling form data from a page that loads via JavaScript
- Cleaning and converting messy HTML into readable markdown
- Batch scraping multiple URLs in a single session
예시 워크플로
User asks: Extract all product names and prices from this e-commerce URL
- 1
Instantiate AsyncWebCrawler with headless browser mode
- 2
Run crawler on the URL with javascript=true and a custom js_code selector targeting product elements
- 3
Receive extracted_content with structured name/price fields
- 4
Filter and normalize the returned array into a clean list
JSON array of objects each containing product name and price
설치
clawhub install codylrn804/crawl4aiCLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.