User Tools

Site Tools


lua:ua-parser

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
lua:ua-parser [2018/03/10 19:45] – created veeralua:ua-parser [2018/12/13 17:09] (current) veera
Line 1: Line 1:
 ====== HTTP User-Agent based analytics using the UA-Parser project ====== ====== HTTP User-Agent based analytics using the UA-Parser project ======
  
-The [[https://github.com/ua-parser/uap-core|UA-Parser]] project +User-Agent strings are notorious for minor variations that make it hard to use them to categorize browsers, devices, and OS. The UA-Parser Core project maintains a giant Regex file that you can use to extract these elements. 
 + 
 +The LUA Script found on the [[https://github.com/trisulnsm/trisul-scripts/tree/master/lua/backend_scripts/ua-parser|scripts page]] demonstrates the following techniques. 
 + 
 +  * How to work with YAML files 
 +  * How to use the T.re2 support by Trisul to load a dictionary of RE2 compatible Regexes 
 + 
 +==== Links ==== 
 + 
 + 
 +  * [[https://github.com/trisulnsm/trisul-scripts/tree/master/lua/backend_scripts/ua-parser|UA-Parser Trisul script]] 
 +  * The [[https://github.com/ua-parser/uap-core|UA-Parser]] project which maintains a library of UA Parsing regexes 
 + 
 + 
 + 
 + 
lua/ua-parser.1520691301.txt.gz · Last modified: 2018/03/10 19:45 by veera