This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!
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; http://www.furl.net; wn.furlbot@looksmart.net)
# 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:1.9.2.8) 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/3.0.195.27 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

Installation

Use pip:

$ pip install -U autouseragents

Documentation

Documentation is available at https://github.com/brunobell/autouseragents/blob/master/README.rst

Contribution

Use github to submit bug,fix or wish request: https://github.com/brunobell/autouseragents/issues

Release History

Release History

0.5.4

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.5.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

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
autouseragents-0.5.4.zip (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