Skip to main content

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.6

Prerequisites

Ensure you have the following installed:

  • Python 3.x
  • pip

Installation

Follow these steps to set up the project:

$ pip install GenUserAgent

Generate User-Agent Facebook

from Gen import UserAgentGenerator

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',
}

Logger console

from Gen import UserAgentGenerator 
from Gen.utils import logger


user_agent = UserAgentGenerator().generate_user_agent()

from Gen.utils import logger
import requests

result =  requests.get("https://api.myip.com")
if result.status_code == 200:
    logger.info(f"SUCCESS - IP : {result.json()['ip']}")
else:
    logger.warning("Not found result !")

Release files for GenUserAgent 1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GenUserAgent 1.8
File Size Uploaded
GenUserAgent-1.8.tar.gz 5.8 kB Details

Release files / GenUserAgent-1.8.tar.gz

Download URL GenUserAgent-1.8.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9f96be256d891ab9894f1ac402cf9a7a26143c08ceef294086af31fe39d2fc7c
BLAKE2b-256 checksum
How to use checksums
b71ce49de2b3c8453f5ca1884d0dd20fda9901a7585ada394d2c4169ced848f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.8 This release

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page