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

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.1.5.tar.gz (69.5 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.5-py3-none-any.whl (94.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for scrapy_cffi-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f5abaae16d4a64bb7e81f256f9006e7fdc99ed43b2e86d304a70d4b643e395cd
MD5 04b7d7c860c6fb411a5d2802319aac63
BLAKE2b-256 f4af7abfd9ad568fab089466b9dae21d745c0e214b9b13610daffc1045268930

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for scrapy_cffi-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 43f4e21ba8624cd3e663e4aad6d304e20c2ff41d471b4e0e7855b9412aceba66
MD5 1a24261a10a295809bf5b1a5cbf7c64a
BLAKE2b-256 3446e38b1247550bb23a2c358957c153544478ff928c18b010a8493a928992ea

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