Skip to content

debbbbie/useragents-rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generate a random User-Agent for you

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages