zotonic / ua_classifier

User-Agent Classifier: Erlang version of WeatherChannel's dClass
Apache License 2.0
5 stars 8 forks source link

Updating the dtree db files. #3

Closed mmzeeman closed 4 years ago

mmzeeman commented 8 years ago

It looks like the dtree files should be updated for more recent browsers. However de dtree repository of the weather channel is not updated and http://openddr.org (open at own risk) looks hacked.

I see that the apache project has more recent device databases. http://devicemap.apache.org. Should we get it from them in the future?

> ua_classifier:browser_classify("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/601.6.17 (KHTML, like Gecko) Version/9.1.1 Safari/601.6.17").
{ok,[{os,<<>>},
     {version,0},
     {browser,<<"WebKit">>},
     {id,<<"safari">>}]}
mworrell commented 8 years ago

The devicemap XML data is here http://devicemap-vm.apache.org/data/snapshot/

yhafri commented 4 years ago

Hey @mworrell Would be great if you can update the openddr.dtree (953kiB) with the recent version from this dClass fork at devicemap.dtree (1.1miB). Keep up the good work.

mworrell commented 4 years ago

@yhafri done, changed the Makefile to source the files from https://github.com/openx/dClass/tree/master/dtrees