diff --git a/oyster/client.py b/oyster/client.py index 5ac034c..cc96d61 100644 --- a/oyster/client.py +++ b/oyster/client.py @@ -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