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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fake_usrag_bor-0.1.41.tar.gz | 38.1 kB | Without provenance | Details for fake_usrag_bor-0.1.41.tar.gz |
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
|
Security for fake-usrag-bor 0.1.41
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.