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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file random_header_generator_compat-4.0.40.tar.gz.
File metadata
- Download URL: random_header_generator_compat-4.0.40.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
771ed8c926df6b5e1da57e806fa8b2f1bb5da3dd48180925221abb5ed505ae05
|
|
| MD5 |
3d79fce63139f9fd5741ffb1e1b0f2a5
|
|
| BLAKE2b-256 |
32de86a265679fcebc328a268672503ea5d837be4d84464815d751413e00c0c8
|