Skip to main content

An asyncio-style web scraping framework inspired by Scrapy, powered by curl_cffi.

Project description

scrapy_cffi

An asyncio-style web scraping framework inspired by Scrapy, powered by curl_cffi.

scrapy_cffi is a lightweight asynchronous crawling framework that mimics the Scrapy architecture while replacing Twisted with curl_cffi as the underlying HTTP/WebSocket client. It is designed to be efficient, extensible, and suitable for both simple tasks and complex distributed crawlers.


✨ Features

  • Familiar Scrapy-style components: spiders, items, interceptors, pipelines
  • Fully asyncio-based engine
  • Built-in support for HTTP and WebSocket requests
  • Lightweight signal system
  • Plug-in ready interceptor and task manager design
  • Redis-compatible scheduler (optional)
  • Designed for high-concurrency crawling

📦 Installation

From PyPI

pip install scrapy_cffi

From source

git clone https://github.com/aFunnyStrange/scrapy_cffi.git
cd curl_cffi
pip install -e .

🚀 Quick Start

scrapy_cffi startproject <project_name>
cd <project_name>
scrapy_cffi genspider <spider_name> <domain>
python runner.py

📖 Documentation

Technical module-level documentation can be found in the docs/ directory on GitHub. Each core component (engine, downloader, middleware, etc.) has its own .md file.

📄 License

This project is licensed under the BSD 3-Clause License. Portions of the code (specifically item.py) are adapted from the Scrapy project. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scrapy_cffi-0.1.0.tar.gz (75.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scrapy_cffi-0.1.0-py3-none-any.whl (104.0 kB view details)

Uploaded Python 3

File details

Details for the file scrapy_cffi-0.1.0.tar.gz.

File metadata

  • Download URL: scrapy_cffi-0.1.0.tar.gz
  • Upload date:
  • Size: 75.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for scrapy_cffi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0b9c86f62393ad9747bd1b032fe0dca6ef83fbf1c3bf9a7ea0ca2e078f54c00d
MD5 42b9fdf45de9e415560782ccc2290301
BLAKE2b-256 80eba0dccfd775ceb54ad756ecbe494909eb5c2b0705c6886953c15a31f9ab28

See more details on using hashes here.

File details

Details for the file scrapy_cffi-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: scrapy_cffi-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 104.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for scrapy_cffi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1fec0913abd4f6bcec61d1affe0b431bb68c85f95eb96ca5d5c50ba8e921053
MD5 1cc2af31f93e6f20478cfb73a311b621
BLAKE2b-256 e9b7e47ca95a8dff93a04b776ac6aba170df9e8fa3b8851785c93ce41cd0a190

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page