Get human readable device/browser combination from user agent string?

With LinkedIn you can see a list of sessions, and sign them out from a distance.

Within that list you can see a human readable way what kind of device / browser combination you used for that session.

LinkedIn示例

The current state of UserAgent strings is quite a mess.

Question: Is there a reliable way (or library) to extract this information clean and reliable from the user agent string?

What I'm trying to prevent

One big hairy ball of spaghetti with 30 if ( str.contains("yadadaya") under each other that have to tested and that will most likely break or go out of date really fast.

Looking for something preferably in C# or JavaScript


你可能想要像ua-parser-js或uap-csharp这样的东西。

链接地址: http://www.djcxy.com/p/86672.html

上一篇: 删除NumPy中的所有其他元素

下一篇: 从用户代理字符串获取人类可读的设备/浏览器组合?