Skip to main content

Simple package with fake user agents for your requests.

Installation

pip install fake-usrag-bor

Usage

1. Initialization:

from fake_usrag_bor import FakeUserAgentBOR
ua = FakeUserAgentBOR()

2. Some examples:

#Random user agent
ua.random_user_agent()
>> Mozilla/5.0 (Windows; U; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)

#Random Google Chrome user agent
ua.random_chrome_user_agent()
>> Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.815.0 Safari/535.1

#Simple header with random user agent
ua.simple_header()
>> {'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.4) Gecko/20070509 Firefox/2.0.0'}

#Simple header with Opera user agent
ua.simple_header(ua.random_opera_user_agent)
>> {'User-Agent': 'Mozilla/4.0 (compatible; MSIE 5.0; Windows XP) Opera 6.04  [fr]'}

Notes

This package working without Internet, it's mean, that you shouldn't make request to different sites to take some user agents.

Release history

  • 0.1.41 Description fixes
  • 0.1.3 Some bug fixes for Unix systems
  • 0.1.2 Removed tested strings from main file
  • 0.1.1 Added description to README
  • 0.1 Released

Release files for fake-usrag-bor 0.1.41

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

Source distribution (sdist)

Source distribution for fake-usrag-bor 0.1.41
File Size Uploaded
fake_usrag_bor-0.1.41.tar.gz 38.1 kB Details

Release files / fake_usrag_bor-0.1.41.tar.gz

Download URL fake_usrag_bor-0.1.41.tar.gz
Size 38.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ab9170db00bd07869ae5d204b2ea9651e4696a931b11deded8dfd04456c8657d
BLAKE2b-256 checksum
How to use checksums
4e49a47e6dae738193eb84131ccb7ed5b9ffd7ff9871d168e34a18ac33c94662
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.1.41 This release

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

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