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.0.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

scrapfly_sdk-0.8.0-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scrapfly-sdk-0.8.0.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for scrapfly-sdk-0.8.0.tar.gz
Algorithm Hash digest
SHA256 c89cb79bf6cb4f4504d0949743fd686f0f7a851003f63db423c6dfa7e0ff0966
MD5 f627bec97a6fe77268cd9d9bc646937a
BLAKE2b-256 516af560079d317540aabdd6a154e1f71fa493d25b60c81f13af0c5780795716

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scrapfly_sdk-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1417bed2965dca17a40583871eb74ec79fea17a4b04cf6a06d22635800b8a61b
MD5 ff314507c84fb7d7a47fbd560a6af6f4
BLAKE2b-256 4817b47a94e4a1db67738eee86c15d60bca938e87458b8fed192c625fa31bb17

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