Skip to content

Randomize your user agents in your script to make yourself less noticeable

License

Notifications You must be signed in to change notification settings

tverzar/random-user-agents

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

README.md (English)

Random User Agents

This project provides a Python function to generate random user-agent strings for different devices and browsers. The function can be used for web scraping, automated testing, or any other scenario where you need to simulate different user agents.

Features

  • Generate random user-agent strings for Android, iOS, Windows, and Ubuntu devices.
  • Supports Chrome and Firefox browsers.
  • Randomly selects versions and devices to provide realistic user-agent strings.

Installation

To use this project, simply clone the repository and import the function into your Python script.

git clone https://github.com/Aero25x/random-user-agents.git

Usage

Here is an example of how to use the generate_random_user_agent function:

from random_user_agents import generate_random_user_agent

# Generate a random user-agent for an Android device using Chrome
print(generate_random_user_agent(device_type='android', browser_type='chrome'))

# Generate a random user-agent for an iOS device using Firefox
print(generate_random_user_agent(device_type='ios', browser_type='firefox'))

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.

License

This project is licensed under the MIT License.


### README.md (Russian)

```markdown
# Случайные Пользовательские Агенты

Этот проект предоставляет функцию на Python для генерации случайных строк user-agent для различных устройств и браузеров. Функция может использоваться для веб-скрапинга, автоматического тестирования или в любых других сценариях, где необходимо имитировать различные пользовательские агенты.

## Возможности

- Генерация случайных строк user-agent для устройств Android, iOS, Windows и Ubuntu.
- Поддержка браузеров Chrome и Firefox.
- Случайный выбор версий и устройств для создания реалистичных строк user-agent.

## Установка

Чтобы использовать этот проект, просто клонируйте репозиторий и импортируйте функцию в свой скрипт на Python.

```bash
git clone https://github.com/Aero25x/random-user-agents.git

Использование

Пример использования функции generate_random_user_agent:

from random_user_agents import generate_random_user_agent

# Генерация случайного user-agent для устройства Android с использованием Chrome
print(generate_random_user_agent(device_type='android', browser_type='chrome'))

# Генерация случайного user-agent для устройства iOS с использованием Firefox
print(generate_random_user_agent(device_type='ios', browser_type='firefox'))

Вклад

Приветствуются любые вклады! Пожалуйста, не стесняйтесь отправлять запросы на добавление функций или открывать вопросы.

Контакты

Для поддержки или вопросов, свяжитесь со мной в Telegram: @hidden_coding

Лицензия

Этот проект лицензирован по лицензии MIT.

About

Randomize your user agents in your script to make yourself less noticeable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%