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',
|
||||
'FBForIPhone': 'WebKit',
|
||||
'Gecko': 'Mozilla',
|
||||
'konqueror': 'Konqueror',
|
||||
'Mozilla': 'Netscape',
|
||||
'MSIE': 'Internet Explorer',
|
||||
'NokiaBrowser': 'Nokia Browser'
|
||||
|
@ -82,14 +83,15 @@ UA_REGEXPS = {
|
|||
'(Camino)\/(\d+)',
|
||||
'(Chimera)\/(\d+)',
|
||||
'(chromeframe)\/(\d+)',
|
||||
'(Chromium)\/(\d+)',
|
||||
'(Epiphany)\/(\d+)', # before Chrome, Chromium and Safari
|
||||
'(Chromium)\/(\d+)', # before Chrome
|
||||
'(Chrome)\/(\d+)',
|
||||
'(Epiphany)\/(\d+)',
|
||||
'(FBForIPhone)',
|
||||
'(Firefox)\/(\d+)',
|
||||
'(Galeon)\/(\d+)',
|
||||
'(iCab) (\d+)',
|
||||
'(iCab)\/(\d+)',
|
||||
'(konqueror)\/(\d+)',
|
||||
'(Konqueror)\/(\d+)',
|
||||
'(Lynx)\/(\d+)',
|
||||
'(Netscape)\d?\/(\d+)',
|
||||
|
|
Loading…
Reference in a new issue