Skip to main content

Random User-Agent

Project description

uas

Description

This fake user agent generator does not use any external data. Instead it randomizes browser versions for Firefox, Chrome and OS versions for MacOS, Windows. uas also contains some static user agents for bots from Facebook, Google and Bing.

Installation

pip install uas

Usage

import requests
from uas import chrome, firefox, bot, GOOGLE


r = requests.get("https://example.com/chrome", headers={"User-Agent": chrome()})
r = requests.get("https://example.com/firefox", headers={"User-Agent": firefox()})
r = requests.get("https://example.com/bot", headers={"User-Agent": bot()})
r = requests.get("https://example.com/google", headers={"User-Agent": GOOGLE[0]})

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

uas-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

uas-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file uas-0.1.0.tar.gz.

File metadata

  • Download URL: uas-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.2

File hashes

Hashes for uas-0.1.0.tar.gz
Algorithm Hash digest
SHA256 58117cfed561a60eb87ac4c882ca181711aa68de97e251f263377b4ed09a3fc1
MD5 ef06d8e07c376bc4c62646b6f494742d
BLAKE2b-256 b72f607772fe55ccec554ac1cf5e6c4bb54ab9b2122f6f392a366ce5a501edca

See more details on using hashes here.

File details

Details for the file uas-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: uas-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.2

File hashes

Hashes for uas-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 899a25dee4668391045b96d7b4d7cd4d093c5e440b97fb64b7f26e9947d3fa39
MD5 f98b5b51efa82c1f8a5e5da4fa3b5b9e
BLAKE2b-256 6a710cd8263df5a28d88b2b9719e54e160220ea389de274738571c46ca6ee646

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page