从 http 标头识别移动设备

发布于 2024-09-27 14:10:33 字数 207 浏览 1 评论 0原文

我有一个大型数据集,其中包含从网络测量中获取的 HTTP 标头信息。我需要使用这些标头中存在的 UserAgent 来识别用户代理是用于桌面设备还是移动设备或其他设备。完成此操作后,我需要识别特定的移动设备并对这些设备类型进行进一步分析。

那么,有人可以告诉我一个全面的免费移动设备数据库吗?最好应该有一个简单的界面来匹配这些用户代理字符串并获取设备信息。我主要使用 Perl 工作。

I have a large data-set containing HTTP Header information taken from network measurements. I need to use the UserAgent present in those headers to identify whether the useragent is for a Desktop or a Mobile Device or anything else. After doing that I need to identify the particular mobile device and perform further analysis on these device types.

So, can someone tell me a comprehensive free database of mobile devices. Preferably, there should be an easy interface to match these user-agent strings and get the device information. I primarily work in Perl.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

毅然前行 2024-10-04 14:10:33

维基百科列表足够免费吗?

或者查看 WURFL

Is Wikipedia's list free enough?

Or have a look at WURFL.

豆芽 2024-10-04 14:10:33

HTTP::BrowserDetect 在这里可能会有所帮助。特别是,有一个 mobile() 方法可能会帮助您。该模块在 UA 字符串上看起来相当最新,尽管不可能在任何给定时刻完全保持最新状态(除非存在 100% 准确的所有 UserAgent 的实时存储库......)。

HTTP::BrowserDetect might be helpful here. In particular, there is a mobile() method that might help you. The module seems pretty current on UA strings, although it's impossible to be completely up-to-date at any given moment (unless there is a 100% accurate, live repository of all UserAgents in the wild..).

丢了幸福的猪 2024-10-04 14:10:33

WURFL 是实现这一目标的最佳选择。他们提供包含有关设备的更多详细信息的 XML 文件。

WURFL is the best option to do this. they provide XML file with more details about the Device.

孤云独去闲 2024-10-04 14:10:33

这是正确的当前链接模块更新导致链接中断。如果这确实中断,则搜索 HTTP::BrowserDetect

Here is the correct Current Link there appears to have been an update to the module to the link broke. If this does break then search HTTP::BrowserDetect

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文