temporary fix to urllib quote issue
This commit is contained in:
parent
fd9d6ebb64
commit
0a2b3bfae7
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ class Client(object):
|
|||
|
||||
# update strategies could be implemented here as well
|
||||
try:
|
||||
data = self.scraper.urlopen(urllib.quote(doc['url']))
|
||||
url = doc['url'].replace(' ', '%20')
|
||||
data = self.scraper.urlopen(url)
|
||||
content_type = data.response.headers['content-type']
|
||||
except scrapelib.HTTPError:
|
||||
# TODO: log error
|
||||
|
|
Loading…
Reference in a new issue