new user agent, fix path

This commit is contained in:
j 2010-09-01 19:57:29 +02:00
parent 82b7ff413c
commit 269086d349
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ from chardet.universaldetector import UniversalDetector
# Default headers for HTTP requests.
DEFAULT_HEADERS = {
'User-Agent': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100723 Firefox/3.6.8',
'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100823 Firefox/4.0.1',
'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language': 'en-us,en;q=0.5',

View file

@ -188,7 +188,7 @@ def normalizeName(name):
return name
def normalizePath(path):
path = path.replace(':', '_').replace('/', '')
path = path.replace(':', '_').replace('/', '_')
if path.endswith('.'): path = path[:-1] + '_'
return path