Skip to main content

Add your description here

Project description

careful_httpx is a library for making requests to less-than-reliable websites.

It is based on scrapelib, which has powered Open States & many other Python scrapers for over 15 years.

Code: https://codeberg.org/jpt/careful_httpx

Documentation: TODO

Features

Enhances httpx.Client with features useful for writing long-running scrapers & crawlers, particularly against sites that are slow or have intermittent errors.

  • retries
  • throttling
  • dev-cache for iterating on scrapers

example

TODO

features this has that scrapelib doesn't

  • httpx support
  • composable interface, can augment Client with just the enhancements you want

TODO: don't allow instantiating bad patch classes, and check for incompatible configs

features scrapelib had that this doesn't

Open to considering if there is interest, but didn't seem necessary.

  • HTTP(S) and FTP requests via an identical API
  • allow setting custom ciphers
  • have urlretrieve
  • support FTP
  • set custom user-agent/mess w/ headers

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

careful-0.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

careful-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file careful-0.1.0.tar.gz.

File metadata

  • Download URL: careful-0.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.2

File hashes

Hashes for careful-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8ac69dc6e51c4ad0cf862c3a3826da22eef16196f51598b01d811ebd22af41d3
MD5 50675ab221f971977a853885fa59164a
BLAKE2b-256 0bc9caba333fd714f83097ef2950b35709ddb56d7ce2bd9bbb6848b51ca99007

See more details on using hashes here.

File details

Details for the file careful-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: careful-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.2

File hashes

Hashes for careful-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbf7cdb81107f822f56d8f51fa9fa76734f6c73002db09157c239a25fb859ca0
MD5 0627fe791df756dcc750da19d11d4ed1
BLAKE2b-256 da8b07286342835d7449f2cd37649762eec15c10e5f413fd562a363963e464c4

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