scrapfly-sdk
Scrapfly SDK for Scrapfly
What it is and what it does
Scrapfly SDK is a Python client library for the Scrapfly cloud web scraping service. It wraps three main API endpoints—Web Scraping, Extraction, and Screenshot—allowing developers to scrape web pages, extract structured data, and capture screenshots programmatically. The SDK handles authentication, request configuration, and response parsing, with built-in support for advanced features like JavaScript rendering, anti-bot bypass (ASP), proxy pool selection, and custom JavaScript execution.
The package integrates with LlamaIndex and LangChain for RAG (Retrieval-Augmented Generation) workflows, enabling developers to scrape web content and feed it directly into LLM training pipelines. It depends on decorator, requests, python-dateutil, loguru, urllib3, and backoff for HTTP handling, logging, and retry logic. Optional extras add asyncio/threading support, Scrapy integration, and a Flask-based webhook server for event handling.
Use it for:
- Scrape JavaScript-heavy websites by enabling cloud-based headless browser rendering and anti-bot bypass.
- Extract structured data from web pages and feed it into LLM pipelines via LlamaIndex or LangChain for RAG systems.
- Rotate through proxy pools and geographic locations to bypass IP-based blocking and geo-restrictions.
- Capture full-page screenshots of websites for visual monitoring or archival purposes.
- Build automated data collection pipelines with retry logic and error handling for unreliable or blocking websites.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python SDK for the Scrapfly web scraping service, providing access to web scraping, extraction, and screenshot APIs with support for JavaScript rendering, proxy rotation, and anti-bot bypass.
Yes, if you need cloud-based web scraping with anti-bot features and have a Scrapfly account. The SDK is actively maintained, has low install friction, carries a permissive license, and integrates well with LLM frameworks. Install only if you plan to use the Scrapfly service; it is a client library, not a standalone scraper.
Install
scrapfly-sdk on PyPI
pip
pip install scrapfly-sdkuv
uv add scrapfly-sdkpoetry
poetry add scrapfly-sdkInstalling scrapfly-sdk
Before you install
Low install friction with a pure Python wheel and six common runtime dependencies. Active maintenance with a recent release (61 days ago) and ongoing repository activity.
License in practice
BSD permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install scrapfly-sdk
from scrapfly_sdk import ScrapeConfig, ScrapflyClient
client = ScrapflyClient(api_key="your_api_key")
config = ScrapeConfig(url="https://example.com")
result = client.scrape(config)
Requires a valid Scrapfly API key from https://www.scrapfly.io/ to make actual requests.
Verify before relying
- Whether the optional extras (seepdup, concurrency, scrapy, webhook-server) add meaningful value for typical use cases.
- Performance characteristics and rate limits of the Scrapfly service itself.
- Pricing model and free tier limitations for API usage.
Package facts
| License | BSD (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — decorator, requests, python-dateutil, loguru, urllib3, backoff |
| Maintenance | actively maintained — 61 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 208,755/month — #9,526 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: scrapfly_sdk-0.11.1-py3-none-any.whl
Keywords: scraping, web scraping, data, extraction, scrapfly, sdk, cloud, scrapy
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
scrapingbeePython SDK wrapper for ScrapingBee's web…
permissive · top 15,000 on PyPI
scrapinghubA Python client library for communicating with…
permissive · top 15,000 on PyPI
linkup-sdkA Python client library for the Linkup API that…
permissive · top 15,000 on PyPI
scrapegraph-pyClient SDK for the ScrapeGraphAI managed API,…
permissive · top 15,000 on PyPI
zenrowsPython client for the ZenRows web scraping API…
permissive · top 15,000 on PyPI
scrapy-zyte-apiScrapy plugin that integrates Zyte API for web…
permissive · top 15,000 on PyPI
scraplingScrapling is a web scraping and crawling…
permissive · top 5,000 on PyPI
spider-clientPython SDK for the Spider Cloud API that…
permissive · top 15,000 on PyPI
firecrawlA Python SDK for web scraping, crawling,…
permissive · top 5,000 on PyPI
oxylabsOfficial Python client for Oxylabs web scraping…
permissive · top 15,000 on PyPI