必须先在 ScrapFly 控制台申请 API Key 并设置 SCRAPFLY_KEY 环境变量,否则无法请求;每个爬虫需进入各自子目录单独安装依赖和运行;依赖 Poetry 管理环境,需提前安装 Poetry 而非直接用 pip。
git clone https://github.com/scrapfly/scrapfly-scrapers.git
cd scrapfly-scrapers/airbnb-scraper
export SCRAPFLY_KEY="YOUR SCRAPFLY KEY"
poetry install --no-root
poetry run python run.pyREADME 未说明,仅要求 Python 3.10+ 与 Poetry,无需本地 GPU
基于 ScrapFly API 的 Python 爬虫示例集,覆盖 40 多个热门网站,帮你绕过反爬直接拿结构化数据
一套面向 40 多个热门网站的 Python 爬虫脚本合集,内置代理和反爬绕过能力,省去从零处理验证码与封禁的麻烦。
核心能力
- 为 40 多个热门域名各提供独立可运行的爬虫脚本
- 用 ScrapFly Python SDK 发送请求并绕过网站封锁
- 内置 parsel 选择器解析 HTML,JMESPath 处理 JSON
- 基于 asyncio 编写并发抓取代码
- 每个爬虫附示例输出数据集与夜间测试状态徽章
容易踩的坑
暂无 release 数据(可能没有发版,或尚未同步)。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
ScrapFly Scrapers 🕷️
English · 简体中文 · 日本語 · Español · Русский
This repository contains educational example scrapers for popular web scraping targets using the ScrapFly web scraping API and Python.
Most scrapers use a simple web scraping stack:
- Python version 3.10+
- Scrapfly's Python SDK for sending HTTP requests, getting past blocking and parsing the HTML with the built-in parsel selector.
- asyncio for writing concurrent code using the async/await syntax.
- JMESPath and nested-lookup for JSON parsing when needed.
- loguru for logging.
To learn more about web scraping, see our full tutorials on how to scrape these targets (and many others) in the scrapeguide directory.
For AI agents and LLM tools, llms.txt lists every scraper with its functions and sample output, and explains how to run a scraper and how to write a new one.
Quick start
Every scraper lives in its own folder and runs on its own (Python 3.10+ and Poetry):
git clone https://github.com/scrapfly/scrapfly-scrapers.git
cd scrapfly-scrapers/airbnb-scraper # any scraper folder from the list below
export SCRAPFLY_KEY="YOUR SCRAPFLY KEY" # from https://scrapfly.io/dashboard
poetry install --no-root
poetry run python run.py # example scrape, saves its output in ./results
poetry run pytest test.py # the scraper's tests
Each scraper folder's README lists what it scrapes.
List of Scrapers
Below is the list of available web scrapers for the supported domains along with their scrape guide, sample datasets, and status. 👇
The status comes from the nightly test run, which also orders the table: scrapers whose tests pass come first, failing and untested ones last.
A badge reads passing (every test passed), N/M passing (some tests passed), failing (none passed) or not run; click it to see that scraper's last results, with a link to each test's log.