UserAgent Generator
This project aims to create a simple user-agent generator that can be used to mimic different browsers and devices. This can be particularly useful for web scraping and testing purposes.
Getting Started v1.6
Prerequisites
Ensure you have the following installed:
- Python 3.x
- pip
Installation
Follow these steps to set up the project:
$ pip install GenUserAgent
Generate User-Agent Facebook
from Gen import UserAgentGenerator
headers = {
'User-agent': UserAgentGenerator().generate_user_agent(),
'X-Tigon-Is-Retry': 'False',
'X-Fb-Device-Group': '7948',
'X-Graphql-Request-Purpose': 'fetch',
'X-Fb-Privacy-Context': '3643298472347298',
'X-Fb-Friendly-Name': 'FbBloksActionRootQuery-com.bloks.www.bloks.caa.login.async.send_login_request',
}
Logger console
from Gen import UserAgentGenerator
from Gen.utils import logger
user_agent = UserAgentGenerator().generate_user_agent()
from Gen.utils import logger
import requests
result = requests.get("https://api.myip.com")
if result.status_code == 200:
logger.info(f"SUCCESS - IP : {result.json()['ip']}")
else:
logger.warning("Not found result !")
Metadata
Release files for GenUserAgent 1.8
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 |
|---|---|---|---|---|
| GenUserAgent-1.8.tar.gz | 5.8 kB | Without provenance | Details for GenUserAgent-1.8.tar.gz |
Release files / GenUserAgent-1.8.tar.gz
| Download URL | GenUserAgent-1.8.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f96be256d891ab9894f1ac402cf9a7a26143c08ceef294086af31fe39d2fc7c
|
|
BLAKE2b-256 checksum How to use checksums |
b71ce49de2b3c8453f5ca1884d0dd20fda9901a7585ada394d2c4169ced848f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for GenUserAgent 1.8
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.