[erlang-questions] user agent parsing.

Anthony Molinaro anthonym@REDACTED
Fri May 26 19:45:49 CEST 2017


This library should do what you want

https://github.com/zotonic/ua_classifier

We've been using it in production for some time (maybe 5-6 years).  Every so often you need to update the database (which is now Apache DeviceMap IIRC).

Hope that helps,

-Anthony

> On May 26, 2017, at 8:27 AM, John Doe <donpedrothird@REDACTED> wrote:
> 
> Check the  https://browscap.org - the csv database, it's the most complete one of the lot. I doubt you'll be able to keep the database up to date yourself. Even if you manage to gather one right now. It will become obsolete very fast.
> 
> Also you can't just compare useragents "as is" with the database of useragents, as often useragents have some additional parts added by plugins, minor browser versions or even proxies, so you would need to split  useragent and look up known features of known useragents in the current useragent, just to be able to detect if not all but at least some features. The browscap has such trees of features.
> 
> 2017-05-26 18:14 GMT+03:00 Max Lapshin <max.lapshin@REDACTED>:
>> I think that we need to know device, its vendor, os, major versions.
>> 
>> Problem here is that it seems that I will have to fill database myself: we have stb, flash players, smart tv and so on.
>> 
>> 
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170526/a270f632/attachment.htm>


More information about the erlang-questions mailing list