User Agent Generator
A simple library to generate fake user agents for various platforms and browsers. This library can be useful for web scraping, testing, and simulating user behavior in web applications.
Features
- Generates random user agents for multiple platforms:
- Chrome
- Firefox
- Safari
- Microsoft Edge
- Internet Explorer
- Android
- iOS
- Linux
- Mac
- Windows
- Customizable version and build numbers
- Easy to use and integrate into your projects
Installation
You can install the package using pip:
pip install useragent-generator
Usage
Here’s how to use the UserAgentGenerator class in your project:
Example
from spoofagent import UserAgentGenerator
# Create an instance of the generator
generator = UserAgentGenerator()
# Generate user agents for different platforms
chrome_ua = generator.generate_user_agent('chrome')
firefox_ua = generator.generate_user_agent('firefox')
safari_ua = generator.generate_user_agent('safari')
edge_ua = generator.generate_user_agent('edge')
ie_ua = generator.generate_user_agent('ie')
android_ua = generator.generate_user_agent('android')
ios_ua = generator.generate_user_agent('ios')
linux_ua = generator.generate_user_agent('linux')
mac_ua = generator.generate_user_agent('mac')
windows_ua = generator.generate_user_agent('windows')
# Print the generated user agents
print("Chrome User Agent:", chrome_ua)
print("Firefox User Agent:", firefox_ua)
print("Safari User Agent:", safari_ua)
print("Edge User Agent:", edge_ua)
print("Internet Explorer User Agent:", ie_ua)
print("Android User Agent:", android_ua)
print("iOS User Agent:", ios_ua)
print("Linux User Agent:", linux_ua)
print("Mac User Agent:", mac_ua)
print("Windows User Agent:", windows_ua)
Customizing User Agents
You can customize the version and build numbers when generating user agents:
custom_ua = generator.generate_user_agent('chrome', version='89', build='1234')
print("Custom Chrome User Agent:", custom_ua)
Platform Options
The following platforms are supported:
- chrome
- firefox
- safari
- edge
- ie
- android
- ios
- linux
- mac
- windows
Metadata
Release files for spoofagent 1.0.1
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 |
|---|---|---|---|---|
| spoofagent-1.0.1.tar.gz | 3.6 kB | Without provenance | Details for spoofagent-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spoofagent-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for spoofagent-1.0.1-py3-none-any.whl |
Total release size: 7.7 kB
Release files / spoofagent-1.0.1.tar.gz
| Download URL | spoofagent-1.0.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c8f6390e369b4686bf75babc9f9adbf50c96630a7ad126c5d5b915c968764f0
|
|
BLAKE2b-256 checksum How to use checksums |
4ec9dcdc849b609597ff8cca8c34cc0b4b245245c3ec9f626d75dabf9062c140
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.10
|
Release files / spoofagent-1.0.1-py3-none-any.whl
| Download URL | spoofagent-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35a49187a629251b7252c85d091a44fd9bdb7253a12ce8420e8f8b8a40a8997d
|
|
BLAKE2b-256 checksum How to use checksums |
91de6270917d4c3cebbad5754b8345ca07eee79da0cb6cc12719690a8bab34ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.10
|
Security for spoofagent 1.0.1
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.