Skip to main content

requests-random-user-agent Build Status PyPI

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'])

# Without a session
resp = requests.get('https://httpbin.org/user-agent')
print(resp.json()['user-agent'])

User-Agents are randomized per-session or per-request. Individual HTTP requests without a session will each have a random User-Agent selected from the list in useragents.txt.

Metadata

Release files for requests-random-user-agent 0.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for requests-random-user-agent 0.0.12
File Size Uploaded Provenance Actions
requests_random_user_agent-0.0.12.tar.gz 3.4 kB Without provenance Details for requests_random_user_agent-0.0.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for requests-random-user-agent 0.0.12
File Interpreter ABI Platform Actions
requests_random_user_agent-0.0.12-py3-none-any.whl Python 3 none any Details for requests_random_user_agent-0.0.12-py3-none-any.whl

Total release size: 7.5 kB

Release files / requests_random_user_agent-0.0.12.tar.gz

Download URL requests_random_user_agent-0.0.12.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ef824ef588c35895b1b5cbb6579ac5490a8cbc84c29b5f01bbb662e8144957b8
BLAKE2b-256 checksum
How to use checksums
071b0fe3b18b3a70507f5519b10b6d4c19a386ef5876ba01231e0d4a278f4b7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.4.8

Release files / requests_random_user_agent-0.0.12-py3-none-any.whl

Download URL requests_random_user_agent-0.0.12-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee09f7165c1abacc479ec15a60468ef0de0b501555ed15ca0b5f7b271e35f5ef
BLAKE2b-256 checksum
How to use checksums
365ca4b7a8b349fd318312da0303769b057c806d887555973f151f940cbbef04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.4.8

Security for requests-random-user-agent 0.0.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.12 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page