improve parse_useragent
This commit is contained in:
parent
d73833f467
commit
0001859ba8
1 changed files with 4 additions and 2 deletions
|
@ -57,6 +57,7 @@ UA_NAMES = {
|
||||||
'chromeframe': 'Chrome Frame',
|
'chromeframe': 'Chrome Frame',
|
||||||
'FBForIPhone': 'WebKit',
|
'FBForIPhone': 'WebKit',
|
||||||
'Gecko': 'Mozilla',
|
'Gecko': 'Mozilla',
|
||||||
|
'konqueror': 'Konqueror',
|
||||||
'Mozilla': 'Netscape',
|
'Mozilla': 'Netscape',
|
||||||
'MSIE': 'Internet Explorer',
|
'MSIE': 'Internet Explorer',
|
||||||
'NokiaBrowser': 'Nokia Browser'
|
'NokiaBrowser': 'Nokia Browser'
|
||||||
|
@ -82,14 +83,15 @@ UA_REGEXPS = {
|
||||||
'(Camino)\/(\d+)',
|
'(Camino)\/(\d+)',
|
||||||
'(Chimera)\/(\d+)',
|
'(Chimera)\/(\d+)',
|
||||||
'(chromeframe)\/(\d+)',
|
'(chromeframe)\/(\d+)',
|
||||||
'(Chromium)\/(\d+)',
|
'(Epiphany)\/(\d+)', # before Chrome, Chromium and Safari
|
||||||
|
'(Chromium)\/(\d+)', # before Chrome
|
||||||
'(Chrome)\/(\d+)',
|
'(Chrome)\/(\d+)',
|
||||||
'(Epiphany)\/(\d+)',
|
|
||||||
'(FBForIPhone)',
|
'(FBForIPhone)',
|
||||||
'(Firefox)\/(\d+)',
|
'(Firefox)\/(\d+)',
|
||||||
'(Galeon)\/(\d+)',
|
'(Galeon)\/(\d+)',
|
||||||
'(iCab) (\d+)',
|
'(iCab) (\d+)',
|
||||||
'(iCab)\/(\d+)',
|
'(iCab)\/(\d+)',
|
||||||
|
'(konqueror)\/(\d+)',
|
||||||
'(Konqueror)\/(\d+)',
|
'(Konqueror)\/(\d+)',
|
||||||
'(Lynx)\/(\d+)',
|
'(Lynx)\/(\d+)',
|
||||||
'(Netscape)\d?\/(\d+)',
|
'(Netscape)\d?\/(\d+)',
|
||||||
|
|
Loading…
Reference in a new issue