randomheaders

Generating Random Headers/User Agents with a locally saved file


License
MIT
Install
pip install randomheaders==1.2

Documentation

RandomHeaders

Python Module that generates fake user agents with a locally saved DB. All the other Fake User Agent programs that I've seen scrape from a website that frequently goes down.

This is useful for webscraping, and testing programs that identify devices based on the user agent.

Install

pip install randomheaders

Getting Started

>>> import RandomHeaders
>>> header = RandomHeaders.LoadHeader()
>>> print header
{'User-Agent': 'Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.0 (KHTML'}