2017 © Pedro Peláez
 

library random-uagent

A library for generating random User Agents

image

mwhite/random-uagent

A library for generating random User Agents

  • Wednesday, February 19, 2014
  • by mwhite
  • Repository
  • 4 Watchers
  • 24 Stars
  • 40,811 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 27 Forks
  • 0 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

PHP Random User Agent generator

A random User-Agent generator written in PHP. It generates desktop browser User Agent strings, roughly based on browser and OS usage statistics from Wikipedia and StatOwl.com as of July 2012., (*1)

Numbers for more minor variable components of the User Agent for each browser are chosen randomly, so it may at times generate User Agents that never actually exist in the wild., (*2)

Usage

Simply require uagent.php and call the function random_uagent(). You may optionally pass a single parameter consisting of an array of language codes to randomly choose from., (*3)

Changelog

  • 2012-07-17: refactored by Mike White (m@mwhite.info) for readability, accuracy, and ease of modification
  • 2011-11-01: initial release by Luka Pusic (pusic93@gmail.com) see http://360percents.com/posts/php-random-user-agent-generator/

License

"THE BEER-WARE LICENSE" (Revision 42):, (*4)

pusic93@gmail.com wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return. Luka Pusic, (*5)

The Versions

19/02 2014

dev-master

9999999-dev

A library for generating random User Agents

  Sources   Download

scraping user-agent