A multi-language port of Browserscope's user agent parser.
Java Perl PHP C# Python C++ Other
Latest commit aa84910 Dec 13, 2014 @Ironholds Ironholds Merge pull request #482 from commenthol/ua-parser-has-moved
ua-parser has moved
Failed to load latest commit information.
cpp Merge pull request #347 from asuhan/master Aug 22, 2014
csharp Removing YamlDotNet dependency, replaced with minimal text parsing Oct 7, 2014
d Add missing override attribute. Jan 7, 2013
go Go: do not panic in uaparser.New() Dec 8, 2014
haskell Haskell: Bump aeson upperbound Nov 23, 2014
java Revert "Current State Brand-Model Parsing" Nov 7, 2014
js Revert "Current State Brand-Model Parsing" Nov 7, 2014
perl Revert "Current State Brand-Model Parsing" Nov 7, 2014
php Revert "Current State Brand-Model Parsing" Nov 7, 2014
pig bump java version to SNAPSHOT and update pig dependency Nov 18, 2013
py/ua_parser Revert "Current State Brand-Model Parsing" Nov 7, 2014
test_resources Revert "Current State Brand-Model Parsing" Nov 7, 2014
tests Revert "Current State Brand-Model Parsing" Nov 7, 2014
.gitattributes Adding license info to the readme Dec 4, 2012
.gitignore Smaller cleanups Dec 8, 2013
.npmignore Revert "Current State Brand-Model Parsing" Nov 7, 2014
.travis.yml Revert "Current State Brand-Model Parsing" Nov 7, 2014
CONTRIBUTING.md ua-parser has moved Nov 29, 2014
LICENSE.txt Added licence info on the Pig port. Jun 5, 2013
MANIFEST.in Fix 'pip install ua-parser' Jun 14, 2013
README.markdown Merge pull request #482 from commenthol/ua-parser-has-moved Dec 13, 2014
composer.json Fixing composer installation (#328, #330) Jan 21, 2014
package.json 0.3.5 Nov 30, 2014
regexes.yaml Revert "Current State Brand-Model Parsing" Nov 7, 2014
setup.py Fixes regex conversion failure when installed on PyPy. Jan 24, 2014

README.markdown

ua-parser has moved

This project has moved to a new project space ua-parser, separating the regexes from the parsers for the different languages into their own repos:

  • uap-core : The regex file necessary to build language ports of Browserscope's user agent parser.
  • uap-cpp : C++ implementation of ua-parser
  • uap-csharp : C# implementation of ua-parser
  • uap-d : D implementation of ua-parser
  • uap-go : Go implementation of ua-parser
  • uap-haskell : Haskell implementation of ua-parser
  • uap-java : Java implementation of ua-parser
  • uap-perl : Perl implementation of ua-parser
  • uap-php : PHP implementation of ua-parser
  • uap-pig : Pig implementation of ua-parser
  • uap-python : Python implementation of ua-parser
  • uap-r : R implementation of ua-parser
  • uap-ruby : A simple, comprehensive Ruby gem for parsing user agent strings with the help of BrowserScope's UA database
  • uap-ref-impl : JavaScript reference implementation of ua-parser.

Please contribute to the respective repositories! Thanks.


ua-parser Build Status

ua-parser is a multi-language port of BrowserScope's user agent string parser.

The crux of the original parser--the data collected by Steve Souders over the years--has been extracted into a separate YAML file so as to be reusable as is by implementations in other programming languages. ua-parser is just a small wrapper around this data, along with ongoing improvements to the definitions.

Note that ua-parser has now been split out into multiple, distinct repositories, one for the core definitions and one for each language implementation. Patches and issues should be raised at those repositories, rather than this one.