Skip to content
Generate a random User-Agent for you
Pull request Compare This branch is even with debbbbie:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
useragents.gemspec

README.md

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

Something went wrong with that request. Please try again.