UserAgentReplica
Description
UserAgentReplica is a Python package that provides functionality for simulating different user agents and xms user agents. This can be useful for web scraping, testing, or any other situation where you need to mimic various types of web clients.
Features
- Safe to use in various platforms
- Simulate a variety of user agents [ Chrome, Safari & Firefox ]
- Simulate a random variety of xm user agents.
- Easy integration with existing projects
- Lightweight and simple to use
Installation
You can install UserAgentReplica using pip:
pip install UserAgentReplica
Example Uses
Here is an example of how to use the UserAgentReplica library to generate a random user agent:
from UserAgentReplica import UserAgent
# Create an instance of UserAgent
agent = UserAgent()
# Get a random user agent
random_user_agent = agent.random_browser()
print(random_user_agent)
# Get a chrome user agent
chrome_user_agent = agent.chrome()
print(chrome_user_agent)
# Get a firefox user agent
firefox_user_agent = agent.firefox()
print(firefox_user_agent)
# Get a safari user agent
safari_user_agent = agent.safari()
print(safari_user_agent)
Here is an example of how to use the UserAgentReplica library to generate a random xms user agent:
from UserAgentReplica import XMsUserAgent
# Create an instance of UserAgent
agent = XMsUserAgent()
# Get a random xms user agent
random_user_agent = agent.random()
print(random_user_agent)
Metadata
Release files for UserAgentReplica 1.1.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 |
|---|---|---|---|---|
| useragentreplica-1.1.1.tar.gz | 2.6 kB | Without provenance | Details for useragentreplica-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| UserAgentReplica-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for UserAgentReplica-1.1.1-py3-none-any.whl |
Total release size: 5.5 kB
Release files / useragentreplica-1.1.1.tar.gz
| Download URL | useragentreplica-1.1.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74cf4f4731abf370c28af7ca007a9c516a82ee1bb7cf75d076b39ea2be140f5d
|
|
BLAKE2b-256 checksum How to use checksums |
6bf96dde13c2ee731a2d7f7593047ff7c6b9b01b0ceb4c03d2c34b91fe3a5fa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.1
|
Release files / UserAgentReplica-1.1.1-py3-none-any.whl
| Download URL | UserAgentReplica-1.1.1-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf4963e2bf8a8523c7c6ec13fcab555b318af11ab799891e7419f96d1aa8e537
|
|
BLAKE2b-256 checksum How to use checksums |
36d4ab09a57b91f17fb2cd2ca300c3389c52a62cf7f9e9f8812a5904af2530a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.1
|
Security for UserAgentReplica 1.1.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.