Fagents
Fagents is a simple and efficient Python package designed to help you generate fake user-agent strings. This can be particularly useful for web scraping, testing, or any situation where you need to mimic different web browsers and devices.
Features
- Random User Agents: Generate random user-agent strings for a variety of browsers and operating systems.
- Specific User Agents: Generate user-agent strings for specific browsers and operating systems including macOS, Opera, mobile devices, Linux, Windows, and Unix.
- Easy to Use: Simple and intuitive API for quick integration into your projects.
Installation
To install the Fagents package, use pip:
pip install fagents
Usage
Once installed, you can easily import and use the package in your Python projects:
from fagents import xrand, Mac, opera, mobile, linux, win, unix
print(xrand()) # Generates a random user agent
print(Mac()) # Generates a user agent for macOS
print(opera()) # Generates a user agent for Opera browser
print(mobile()) # Generates a user agent for a mobile device
print(linux()) # Generates a user agent for a Linux system
print(win()) # Generates a user agent for a Windows system
print(unix()) # Generates a user agent for a Unix system
Examples
Here are some examples of how you can use the Fagents package to generate fake user-agent strings:
from fagents import Mac, opera, mobile
mac_user_agent = Mac()
print(f"Mac User Agent: {mac_user_agent}")
opera_user_agent = opera()
print(f"Opera User Agent: {opera_user_agent}")
mobile_user_agent = mobile()
print(f"Mobile User Agent: {mobile_user_agent}")
With Fagents, you can easily create realistic user-agent strings to simulate different browsers and operating systems, enhancing the flexibility and effectiveness of your web scraping and testing tasks.
Metadata
Release files for fagents 1.2
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 |
|---|---|---|---|---|
| fagents-1.2.tar.gz | 18.9 kB | Without provenance | Details for fagents-1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fagents-1.2-py3-none-any.whl | Python 3 | none | any | Details for fagents-1.2-py3-none-any.whl |
Total release size: 37.3 kB
Release files / fagents-1.2.tar.gz
| Download URL | fagents-1.2.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88d7841f06f2a470d00aedab045bfac960a1a22c589832b8d23ced8a3248ad37
|
|
BLAKE2b-256 checksum How to use checksums |
21477029d235df2cbcfaf7726acdf2c17225dd728a8105ebc1c451f43a48e199
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / fagents-1.2-py3-none-any.whl
| Download URL | fagents-1.2-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c4d0096a00909be8fc45825c49326d5fd0f76787a8c88b329b12d530dcc9aa5
|
|
BLAKE2b-256 checksum How to use checksums |
e8a0c0767b9015eac6d5b5f233df12403b3764ec36c9d916bd3c372cf8aa32ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for fagents 1.2
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.