Skip to main content

A simple Python package designed to generate fake user agents

Project description

Fagents

Fagents is a simple and efficient Python package designed to help you generate fake user-agent strings. This can be particularly useful for web scraping, testing, or any situation where you need to mimic different web browsers and devices.

Features

  • Random User Agents: Generate random user-agent strings for a variety of browsers and operating systems.
  • Specific User Agents: Generate user-agent strings for specific browsers and operating systems including macOS, Opera, mobile devices, Linux, Windows, and Unix.
  • Easy to Use: Simple and intuitive API for quick integration into your projects.

Installation

To install the Fagents package, use pip:

pip install fagents

Usage

Once installed, you can easily import and use the package in your Python projects:

from fagents import xrand, Mac, opera, mobile, linux, win, unix

print(xrand())    # Generates a random user agent
print(Mac())      # Generates a user agent for macOS
print(opera())    # Generates a user agent for Opera browser
print(mobile())   # Generates a user agent for a mobile device
print(linux())    # Generates a user agent for a Linux system
print(win())      # Generates a user agent for a Windows system
print(unix())     # Generates a user agent for a Unix system

Examples

Here are some examples of how you can use the Fagents package to generate fake user-agent strings:

from fagents import Mac, opera, mobile

mac_user_agent = Mac()
print(f"Mac User Agent: {mac_user_agent}")

opera_user_agent = opera()
print(f"Opera User Agent: {opera_user_agent}")

mobile_user_agent = mobile()
print(f"Mobile User Agent: {mobile_user_agent}")

With Fagents, you can easily create realistic user-agent strings to simulate different browsers and operating systems, enhancing the flexibility and effectiveness of your web scraping and testing tasks.

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

fagents-1.2.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

fagents-1.2-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file fagents-1.2.tar.gz.

File metadata

  • Download URL: fagents-1.2.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for fagents-1.2.tar.gz
Algorithm Hash digest
SHA256 88d7841f06f2a470d00aedab045bfac960a1a22c589832b8d23ced8a3248ad37
MD5 632c2bd31a856e4cf111e7415ff1df1e
BLAKE2b-256 21477029d235df2cbcfaf7726acdf2c17225dd728a8105ebc1c451f43a48e199

See more details on using hashes here.

File details

Details for the file fagents-1.2-py3-none-any.whl.

File metadata

  • Download URL: fagents-1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for fagents-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c4d0096a00909be8fc45825c49326d5fd0f76787a8c88b329b12d530dcc9aa5
MD5 dbfecb6d005b5cf96b56915fd8a35d06
BLAKE2b-256 e8a0c0767b9015eac6d5b5f233df12403b3764ec36c9d916bd3c372cf8aa32ae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page