Skip to main content

random_header_generator_compat is a fork of the requests library with the playwright dependencies removed.

Project description

Botasaurus Requests

botasaurus-requests is a fork of the hrequests library, featuring the following updates:

  • Removal of the playwright dependencies, to make it more lightweight.
  • Bug fixes to ensure smooth execution on Windows, eliminating runtime errors.
  • Addition of the Google Referer header in the get method to make requests more humane.

Installation

pip install botasaurus-requests

Usage

from random_header_generator_compat import request

response = request.get(
    "https://www.g2.com/products/omkar-cloud/reviews",
    headers={
        "Referer": "https://www.google.com/",
    },
)
print(response.status_code)

Credits

Kudos to daijro for creating hrequests.

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

random_header_generator_compat-4.0.40.tar.gz (14.4 kB view details)

Uploaded Source

File details

Details for the file random_header_generator_compat-4.0.40.tar.gz.

File metadata

File hashes

Hashes for random_header_generator_compat-4.0.40.tar.gz
Algorithm Hash digest
SHA256 771ed8c926df6b5e1da57e806fa8b2f1bb5da3dd48180925221abb5ed505ae05
MD5 3d79fce63139f9fd5741ffb1e1b0f2a5
BLAKE2b-256 32de86a265679fcebc328a268672503ea5d837be4d84464815d751413e00c0c8

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