从 http 标头识别移动设备
我有一个大型数据集,其中包含从网络测量中获取的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
维基百科列表足够免费吗?
或者查看 WURFL。
Is Wikipedia's list free enough?
Or have a look at WURFL.
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..).WURFL 是实现这一目标的最佳选择。他们提供包含有关设备的更多详细信息的 XML 文件。
WURFL is the best option to do this. they provide XML file with more details about the Device.
这是正确的当前链接模块更新导致链接中断。如果这确实中断,则搜索 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