Skip to main content

Generates safe and dummy usable user agent and xms user agent

Project description

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)

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

useragentreplica-1.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

UserAgentReplica-1.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file useragentreplica-1.1.0.tar.gz.

File metadata

  • Download URL: useragentreplica-1.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for useragentreplica-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0ab7cf041cbe85d07f8de411b08becb042cdea5e978b6c4815efaf28ad3286e0
MD5 2810159998e8d99bc60b60dfebb1b95f
BLAKE2b-256 09a8688fd1a121dcb35faca21be1f732a21a5fc04a429bddc27e1edb96df3589

See more details on using hashes here.

File details

Details for the file UserAgentReplica-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for UserAgentReplica-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fa05b46d924a296da3a8d71c807723072668d8226e94aaec8b82128d3535cd4
MD5 d217fc1cb63a009657f9e56dfe4a65cc
BLAKE2b-256 1620079835d5e68b90f663510faa90982b4715680a09736b5033e8a1babd296f

See more details on using hashes here.

Supported by

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