scrapfly-scrapers

scrapfly活跃维护

一套面向 40 多个热门网站的 Python 爬虫脚本合集,内置代理和反爬绕过能力,省去从零处理验证码与封禁的麻烦。

Scalable Python web scraping scripts for +40 popular domains

暂无版本1,126star +2 / 7 天207fork同步于 2026-11-10 23:51 UTC

怎么上手

由 README 提炼,执行前请确认
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.py
硬件要求按 README 说明

README 未说明,仅要求 Python 3.10+ 与 Poetry,无需本地 GPU

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

基于 ScrapFly API 的 Python 爬虫示例集,覆盖 40 多个热门网站,帮你绕过反爬直接拿结构化数据

一套面向 40 多个热门网站的 Python 爬虫脚本合集,内置代理和反爬绕过能力,省去从零处理验证码与封禁的麻烦。

核心能力

  • 为 40 多个热门域名各提供独立可运行的爬虫脚本
  • 用 ScrapFly Python SDK 发送请求并绕过网站封锁
  • 内置 parsel 选择器解析 HTML,JMESPath 处理 JSON
  • 基于 asyncio 编写并发抓取代码
  • 每个爬虫附示例输出数据集与夜间测试状态徽章

容易踩的坑

必须先在 ScrapFly 控制台申请 API Key 并设置 SCRAPFLY_KEY 环境变量,否则无法请求;每个爬虫需进入各自子目录单独安装依赖和运行;依赖 Poetry 管理环境,需提前安装 Poetry 而非直接用 pip。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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:

    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.