This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
lua:ua-parser [2018/03/10 14:15] veera created |
lua:ua-parser [2018/12/13 11:39] (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 | ||
| + | |||
| + | |||
| + | |||
| + | |||