Skip Menu |

This queue is for tickets about the HTML-ParseBrowser CPAN distribution.

Report information
The Basics
Id: 76924
Status: open
Priority: 0/
Queue: HTML-ParseBrowser

People
Owner: Nobody in particular
Requestors: Jorge_Pombar [...] symantec.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.05
Fixed in: (no value)



Subject: Feature Request: Additional user agents support
Date: Tue, 1 May 2012 10:39:35 -0700
To: "bug-HTML-ParseBrowser [...] rt.cpan.org" <bug-HTML-ParseBrowser [...] rt.cpan.org>
From: Jorge Pombar <Jorge_Pombar [...] symantec.com>
Distribution: HTML::ParseBrowser 1.05 Perl Version: v5.8.8 OS Info: Linux VM0 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux Thanks for the great module you have developed. I'm hoping you'll add support for some User Agents that the module is not able to parse. I've found these so far: Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.10 (maverick) Firefox/3.6.16 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.165 Safari/535.19 Opera/9.80 (J2ME/MIDP; Opera Mini/6.24093/27.1573; U; fr) Presto/2.8.119 Version/11.10 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/536.2.3 (KHTML, like Gecko) Version/5.2 Safari/536.2.3 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19 Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0.1) Gecko/20100101 Firefox/8.0.1 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100914 SUSE/3.6.10-0.3.1 Firefox/3.6.10 Mozilla/5.0 (Linux; U; Android 2.3.3; en-us; X10i Build/3.0.1.G.0.75) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 Mozilla/5.0 (iPad; CPU OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Thanks, Enrique
The tests now use a JSON corpus which might be easy to beef up from other sources. The corpus for UASParser2 looks big: https://github.com/hamaxx/uasparser2/blob/master/test/uas.json Also, this site is helpful for checking expected parse outcomes: http://www.useragentstring.com/index.php.