Skip to main content

Automatically generate a random User Agent for the requests library

Project description

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

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

requests_random_user_agent-0.0.7.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

requests_random_user_agent-0.0.7-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file requests_random_user_agent-0.0.7.tar.gz.

File metadata

  • Download URL: requests_random_user_agent-0.0.7.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using 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.6.3

File hashes

Hashes for requests_random_user_agent-0.0.7.tar.gz
Algorithm Hash digest
SHA256 8ca1d0e001d7800f2fa3ae2500aac3a813d5c24a7a2fad4371566d1ac2d4cfe6
MD5 6d9c6f701d7457045693db49e9b20e54
BLAKE2b-256 83d900e11b4a70c7820b8e9537a133cd65f4a4600b9d9e20ff70798cbfe30367

See more details on using hashes here.

File details

Details for the file requests_random_user_agent-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: requests_random_user_agent-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using 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.6.3

File hashes

Hashes for requests_random_user_agent-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 510bd67551f34f50f43ea9ea61accb69bf08e148c58639610c9386c3e3179354
MD5 01a81b24b0fcbc06b89c187eb2090e8f
BLAKE2b-256 ab48856ff9a1193cb6f19176170336280d3837b13be512d01f35e6549894d3f0

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