Skip to main content

🐍 FlyCrawl Python SDK (flycrawl)

Official Python SDK for FlyCrawl — the high-performance, anti-bot resilient web scraping and LLM markdown extraction engine.

📦 Installation

pip install flycrawl

🚀 Quickstart

1. Basic Single-Page Scrape

from flycrawl import FlyCrawl

client = FlyCrawl(api_key="fc_live_YOUR_KEY")

result = client.scrape(
    url="https://news.ycombinator.com",
    formats=["markdown"],
    only_main_content=True
)

print(result.markdown)

2. High-Throughput Batch Scraping

from flycrawl import FlyCrawl

client = FlyCrawl(api_key="fc_live_YOUR_KEY")

pages = client.batch_scrape(
    urls=[
        "https://example.com/page1",
        "https://example.com/page2",
        "https://example.com/page3"
    ],
    formats=["markdown"]
)

for p in pages:
    print(f"Title: {p.metadata.title} ({len(p.markdown)} chars)")

3. Strongly-Typed Extraction (Pydantic)

from pydantic import BaseModel, Field
from flycrawl import FlyCrawl

class Product(BaseModel):
    title: str
    price: float
    currency: str
    in_stock: bool

client = FlyCrawl(api_key="fc_live_YOUR_KEY")

data = client.extract(
    urls=["https://store.example.com/item/123"],
    schema=Product,
    prompt="Extract the product title, price, currency, and stock status."
)
print(data)

4. Asynchronous Full-Site Crawl

import asyncio
from flycrawl import AsyncFlyCrawl

async def main():
    async with AsyncFlyCrawl(api_key="fc_live_YOUR_KEY") as client:
        job = await client.crawl("https://docs.example.com", max_depth=2, limit=50)
        status = await client.wait_for_crawl(job.id)
        print(f"Crawled {status.completed} pages.")

asyncio.run(main())

📄 License

MIT License.

Metadata

Release files for flycrawl 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flycrawl 1.0.0
File Size Uploaded Provenance Actions
flycrawl-1.0.0.tar.gz 3.9 kB Without provenance Details for flycrawl-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flycrawl 1.0.0
File Interpreter ABI Platform Actions
flycrawl-1.0.0-py3-none-any.whl Python 3 none any Details for flycrawl-1.0.0-py3-none-any.whl

Total release size: 8.3 kB

Release files / flycrawl-1.0.0.tar.gz

Download URL flycrawl-1.0.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
174ecafb845d08e34066764ce0ee3c2364650de8dbd02612f0da64b0784b3030
BLAKE2b-256 checksum
How to use checksums
88b20ec12ce479a63f5e40778f0f94a90f0ea15cc9ebfd97df93447d80dbc16f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / flycrawl-1.0.0-py3-none-any.whl

Download URL flycrawl-1.0.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb877f9491f4e6e67485ad1b36f6165dbb23b523c01248c827bd702fb805211b
BLAKE2b-256 checksum
How to use checksums
129707de2845492b22ab7f7a473ecbfcab0ef2b169271a0a89637a4ba6d98616
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Security for flycrawl 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page