Automatically generate a random User Agent for the requests library
Project description
requests-random-user-agent
Configures the requests library to randomly select a desktop User-Agent. See the full list in requests_random_user_agent/useragents.txt.
Installation
pip install requests-random-user-agent
Usage
import requests
import requests_random_user_agent
s = requests.Session()
print(s.headers['User-Agent'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for requests_random_user_agent-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b0614f2dbd15ca1214b169e85167ebe4c83d58ba54703b066e1e0f65af1b3d9 |
|
MD5 | 491e1af09b4aab48e46d587cfa23a695 |
|
BLAKE2b-256 | 768b397c194e0ff9c3d3d7126056aa52ead5d63fda19fb4cdbc2172bfef57264 |
Close
Hashes for requests_random_user_agent-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63c99bf3470e3458761a377ab2eed8611fc87d66bf22be29fdccbb1bc10def9b |
|
MD5 | 07da8a8f17c4704ad37702fbe1e6482a |
|
BLAKE2b-256 | bfda6a56db9a64865ce791bb38adfed40f4d5eb31524d338fe257229da3757f0 |