[erlang-questions] user agent parsing.

Alexander Shorin kxepal@REDACTED
Fri May 26 13:53:53 CEST 2017


Hi Max,

I think you could try to make another one based on https://github.com/ua-parser
It provides language agnostic set of rules to parse user agent, which
updates quite frequently.
We use python and scala parsers based on those and it works pretty
good for us. Good thing that we can have consistent parser results
across different projects.

--
,,,^..^,,,


On Fri, May 26, 2017 at 2:39 PM, Max Lapshin <max.lapshin@REDACTED> wrote:
> Hi.
>
> I have a list of 250 000 of different useragents: not only browsers, but
> also devices and so on.
>
> I want to get operation system, kind of device, browser and version from
> them, so I need user agent parser.
>
>
> Right now I see two of them:
>
> https://github.com/ferd/useragent
> https://github.com/chitika/uaparser
>
> I have checked them and they cannot parse lot of my useragent strings.
>
> What is the proper way to go here:
>
> 1) try to edit these libraries?
> 2) take some service with API?
> 3) just try to put ad-hoc hardcoded strings that will cover 90% of my
> records?
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list