需要 Python 3.11 及以上版本;README 未给出更多使用细节,需查阅官方文档
scrapy
scrapyBSD-3-Clause活跃维护Python 的高层网页抓取框架,帮你快速写爬虫,自动处理请求调度、页面解析和数据提取,适合大规模采集任务。
Scrapy, a fast high-level web crawling & scraping framework for Python.
Python 网页爬取与结构化数据提取框架,跨平台,适合快速搭建爬虫项目
Python 的高层网页抓取框架,帮你快速写爬虫,自动处理请求调度、页面解析和数据提取,适合大规模采集任务。
核心能力
- 从网站提取结构化数据
- 跨平台运行
- 由 Zyte 及社区维护
- 提供完整文档与贡献指南
容易踩的坑
- 2.20.0最新正式版2026-11-06 · 2026-11-06 18:23 UTC
- Web-browser-like detection of response encodings, base URLs and meta refresh redirects, powered by frostwork
- Requests can be awaited to get their response
- Non-asyncio Twisted reactors are deprecated
- 2.19.02026-09-10 · 2026-09-10 11:48 UTC
查看更新说明
- New
RemoteControlextension which allows inspecting and controlling a running crawl over HTTP, used by the Scrapy MCP server - Experimental
aiohttp-based download handler (now the default when running without a reactor)
- New
- 2.18.02026-08-20 · 2026-08-20 15:20 UTC
查看更新说明
HttpxDownloadHandlernow uses httpx2- The Twisted-based HTTP/2 download handler is no longer experimental
brotliand Zstandard support are now always available, and optional extras cover the rest of the optional features- Late
Crawlerattributes, such asstats, now raiseRuntimeErrorinstead of beingNonebefore the crawl starts - Item exporters now export fields in declaration order
- New
MetaCopyDetectionMiddleware - New optimization page and built-in stats reference
- 2.17.02026-07-07 · 2026-07-07 10:40 UTC
查看更新说明
- Security bug fixes
- HTTP/2 and SOCKS proxy support for HttpxDownloadHandler
- Improved settings for changing allowed TLS versions
- 2.16.02026-05-19 · 2026-05-19 12:39 UTC
查看更新说明
- Official support for Python 3.14
- Support for Twisted 26.4.0+
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
|logo|
.. |logo| image:: https://raw.githubusercontent.com/scrapy/scrapy/master/docs/_static/logo.svg :target: https://scrapy.org :alt: Scrapy :width: 480px
|version| |python_version| |tests| |coverage| |conda| |deepwiki|
.. |version| image:: https://img.shields.io/pypi/v/Scrapy.svg :target: https://pypi.org/pypi/Scrapy :alt: PyPI Version
.. |python_version| image:: https://img.shields.io/pypi/pyversions/Scrapy.svg :target: https://pypi.org/pypi/Scrapy :alt: Supported Python Versions
.. |tests| image:: https://img.shields.io/github/check-runs/scrapy/scrapy/master?label=tests :target: https://github.com/scrapy/scrapy/actions?query=branch%3Amaster :alt: Tests
.. |coverage| image:: https://img.shields.io/codecov/c/github/scrapy/scrapy/master.svg :target: https://codecov.io/github/scrapy/scrapy?branch=master :alt: Coverage report
.. |conda| image:: https://anaconda.org/conda-forge/scrapy/badges/version.svg :target: https://anaconda.org/conda-forge/scrapy :alt: Conda Version
.. |deepwiki| image:: https://deepwiki.com/badge.svg :target: https://deepwiki.com/scrapy/scrapy :alt: Ask DeepWiki
Scrapy_ is a web scraping framework to extract structured data from websites.
It is cross-platform, and requires Python 3.11+. It is maintained by Zyte_
(formerly Scrapinghub) and many other contributors_.
.. _many other contributors: https://github.com/scrapy/scrapy/graphs/contributors .. _Scrapy: https://scrapy.org/ .. _Zyte: https://www.zyte.com/
Install with:
.. code:: bash
pip install scrapy
And follow the documentation_ to learn how to use it.
.. _documentation: https://docs.scrapy.org/en/latest/
If you wish to contribute, see Contributing_.
.. _Contributing: https://docs.scrapy.org/en/master/contributing.html