Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A simple script to easily generate browser/robot User-Agent.

Project Description

What is autouseragents module for?

This module is for generating random, valid web navigator’s User-Agent HTTP headers.

Usage Example

>>> from autouseragents.autouseragents import AutoUserAgents
>>> mua = AutoUserAgents()
# random_agent() returns just the agent string now, pay attention!
>>> mua.random_agent()
Mozilla/5.0 (X11; Linux i686; rv:2.0b3pre) Gecko/20100731 Firefox/4.0b3pre
>>> mua.random_agent()
ELinks (0.11.3; Linux 2.6.22-gentoo-r9 i686; 80x40)
>>> mua.reset()
>>> mua.reset("crawlerlist")
>>> mua.random_agent()
Mozilla/4.0 compatible FurlBot/Furl Search 2.0 (FurlBot;;
# What's new since v0.5.4:
# What will suprise you comes now:
>>> mua.reset("browserlist")
>>> mua.filter("os", "linux").filter("browser", "firefox").random_agent()
Mozilla/5.0 (X11; U; Linux i686; de-DE; rv: Gecko/20100725 Gentoo Firefox/3.6.8
>>> mua.filter("os", "windows").filter("browser", "chrome").random_agent())
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/ Safari/532.0
>>> mua.filter("os", "mac").filter("browser", "apple").random_agent())
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; fr-fr) AppleWebKit/125.5 (KHTML, like Gecko) Safari/125.9


Use pip:

$ pip install -U autouseragents


Documentation is available at


Use github to submit bug,fix or wish request:

Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
autouseragents-0.5.4-py2-none-any.whl (6.7 kB) Copy SHA256 Checksum SHA256 py2 Wheel Jun 23, 2016 (8.4 kB) Copy SHA256 Checksum SHA256 Source Jun 23, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting