ua-parser / uap-core

The regex file necessary to build language ports of Browserscope's user agent parser.
Other
752 stars 451 forks source link

Identifying Windows PC device family #600

Open anandnalya opened 3 months ago

anandnalya commented 3 months ago

Hi,

We use the device_parsers from regexes.yaml for identifying the device family from a user agent. An unusually large number of Windows/PC user agents are not identified by any of the device definitions defined in device_parsers.

I was wondering what would be a better way of handling this:

  1. Add a generic Windows PC as a device in device_parsers
  2. When there is no match in device_parsers, identify the OS with os_parsers and if Windows, classify it as Windows PC
  3. Use another project like https://github.com/nielsbasjes/yauaa that has some heuristics to identify devices.

Are there any other approaches that might work here?

Thanks in advance!