Thư Viện Hỗ Trợ Tạo UserAgent
Project description
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.0
Prerequisites
Ensure you have the following installed:
- Python 3.x
- pip
Installation
Follow these steps to set up the project:
$ pip install GenUserAgent
Example
import GenUserAgent
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',
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
GenUserAgent-1.3.tar.gz
(5.2 kB
view details)
File details
Details for the file GenUserAgent-1.3.tar.gz.
File metadata
- Download URL: GenUserAgent-1.3.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7749eeca3f0136e083140246166825b09da66c5d509161740216da931822415e
|
|
| MD5 |
475a07584a2d5500f1eb049c7d852817
|
|
| BLAKE2b-256 |
aef4aae905eafa62728b5bfe484a41a1636193e8311a38cb8db5ad26ad0a799c
|