Project

useragents

0.05
No commit activity in last 3 years
No release in over 3 years
Generate a random User-Agent for you
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

useragents-rb

Build Status

Usually, spiders must disguise themselves with plenty of User-Agents, for some servers are smart. The gem useragents can give you that!

It has frequently-used browsers such as Chrome, Firefox, Internet Explorer, Safari, Opera and so on, with frequently-used versions.

The usage is simple, just install the gem at first, then require 'useragents, and at last, UserAgents.rand() works for you!

Enjoy it!

Usage

gem install useragents
require 'useragents'

# Generate a random useragent for you
UserAgents.rand()
# => ""Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1464.0 Safari/537.36"

Copyright © 2013 debbbbie, released under the MIT license

Bitdeli Badge