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

unstable on github

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

🚀 Quick Start

scrapy-cffi startproject <project_name>
cd <project_name>
scrapy-cffi genspider <spider_name> <domain>
python runner.py

Notes:

The CLI command is scrapy_cffi in versions ≤0.1.4 and scrapy-cffi in versions >0.1.4 for improved usability.

📖 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.2.2.tar.gz (90.1 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.2.2-py3-none-any.whl (125.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scrapy_cffi-0.2.2.tar.gz
  • Upload date:
  • Size: 90.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for scrapy_cffi-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5feff2536108c757cdaddaccc356a53189d529ea68f1c836391365a8b9e6a75f
MD5 0ebcec4e9fd5aae3c404bf0ceb250a50
BLAKE2b-256 92426ad3b922cbed9a711f857d8a31f498e474b4e2c6c6c32e3c72d10a31b2a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scrapy_cffi-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 125.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for scrapy_cffi-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d6b2e7b881d7da882aba66a057bc3e7215a4d1d8affc3ecb59b8506b6f6d237
MD5 06ff6d094b5df02044775cceba690100
BLAKE2b-256 bcad4ff2f919bc3cb9b3e958e106efa0e5dd8f3b82cd2e68933fc81debe210e6

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