Skip to main content

Simple package with fake user agents for your requests.

Project description

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

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

fake_usrag_bor-0.1.41.tar.gz (38.1 kB view details)

Uploaded Source

File details

Details for the file fake_usrag_bor-0.1.41.tar.gz.

File metadata

  • Download URL: fake_usrag_bor-0.1.41.tar.gz
  • Upload date:
  • Size: 38.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for fake_usrag_bor-0.1.41.tar.gz
Algorithm Hash digest
SHA256 ab9170db00bd07869ae5d204b2ea9651e4696a931b11deded8dfd04456c8657d
MD5 a18ef4679e5d4970e7134ab84dd72ea1
BLAKE2b-256 4e49a47e6dae738193eb84131ccb7ed5b9ffd7ff9871d168e34a18ac33c94662

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