Matteo Cantoni

NAME

WWW::UserAgent::Random - Perl extension to generate random User Agent

SYNOPSIS

  use WWW::UserAgent::Random;

  my $user_agent = rand_ua("macintosh");

  or
 
  my $user_agent = rand_ua("browsers");

  or
  
  my $user_agent = rand_ua("");

DESCRIPTION

WWW::UserAgent::Random allows to generate random User Agent.

If you don't specify a category, then the rand_ua function will return ones random.

The special category 'browsers' includes only 'freebsd','linux','macintosh','netbsd,'openbsd','sunos' and 'windows' categories.

Categories list (see source files or /docs/user_agent_list.txt file for details):

  • amiga

  • beos

  • browsers

  • cloud_platforms

  • consoles

  • crawlers

  • feed_readers

  • freebsd

  • link_checkers

  • linux

  • macintosh

  • netbsd

  • openbsd

  • os2

  • others

  • phones

  • proxy

  • shell

  • sunos

  • tool

  • validators

  • wap

  • windows

SEE ALSO

http://en.wikipedia.org/wiki/User_agent

http://www.useragentstring.com/

http://www.user-agents.org/

http://www.useragents.org/

AUTHOR

Matteo Cantoni, <matteo.cantoni@nothink.org>

COPYRIGHT AND LICENSE

Copyright (C) 2009,2010,2011 by Matteo Cantoni

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.




Hosting generously
sponsored by Bytemark