Installation
pip install userAgentRandomizer
from userAgentRandomizer import userAgents
ua = userAgents()
random_useragent = ua.random()
print(random_useragent)
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:5.0) Gecko/20110619 Firefox/5.0
print(ua.count())
4513
Advanced Features:
ua.random can pass one of the following options to 'engine', ["Chrome","Firefox","Edge","Opear","Safari"] - if no option selected it will return one at random.
print(ua.random('Firefox'))
Mozilla/5.0 (Windows; U; Windows NT 6.1; hu; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 (.NET CLR 3.5.30729)