Skip to main content

Scrapfly SDK for Scrapfly

Project description

Scrapfly SDK

Installation

pip install scrapfly-sdk

You can also install extra dependencies

  • pip install "scrapfly-sdk[seepdup]" for performance improvement
  • pip install "scrapfly-sdk[concurrency]" for concurrency out of the box (asyncio / thread)
  • pip install "scrapfly-sdk[scrapy]" for scrapy integration
  • pip install "scrapfly-sdk[scrapy]" Everything!

Get Your API Key

You can create a free account on Scrapfly to get your API Key.

Migration

Migrate from 0.7.x to 0.8

asyncio-pool dependency has been dropped

scrapfly.concurrent_scrape is now an async generator. If the concurrency is None or not defined, the max concurrency allowed by your current subscription is used.

    async for result in scrapfly.concurrent_scrape(concurrency=10, scrape_configs=[ScrapConfig(...), ...]):
        print(result)

brotli args is deprecated and will be removed in the next minor. There is not benefit in most of case versus gzip regarding and size and use more CPU.

What's new

0.8.x

  • Better error log
  • Async/Improvement for concurrent scrape with asyncio
  • Scrapy media pipeline are now supported out of the box

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

scrapfly-sdk-0.8.8.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

scrapfly_sdk-0.8.8-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file scrapfly-sdk-0.8.8.tar.gz.

File metadata

  • Download URL: scrapfly-sdk-0.8.8.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for scrapfly-sdk-0.8.8.tar.gz
Algorithm Hash digest
SHA256 a02a8c274d68ca4e815d6ef2d99f061c840e713d529010c4c33d9fd0f1498676
MD5 ee48c1b2bf9ecc69d6d7147d13bcf4f0
BLAKE2b-256 05081fd0a13d672e99824a6293a16d905b9e68d38f0c394a12541fdfea1f4139

See more details on using hashes here.

File details

Details for the file scrapfly_sdk-0.8.8-py3-none-any.whl.

File metadata

  • Download URL: scrapfly_sdk-0.8.8-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for scrapfly_sdk-0.8.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fb0b0f5e9b8723b24cc615e0727f517714b505f965cb95b1be182a8dea79e06b
MD5 07cba8c1003d6de765d907da9ca3d29a
BLAKE2b-256 d33aa15d5afe9bc67f58f55f3a460a8763d7e392f87eabc0a4839a72e26f2f80

See more details on using hashes here.

Supported by

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