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)
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 | |
|---|---|---|---|
| useragentreplica-1.1.1.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| UserAgentReplica-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
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
|