From 0a2b3bfae73b2c3d6369c27f06fa3b7f10cf5ff5 Mon Sep 17 00:00:00 2001 From: James Turk Date: Thu, 28 Jul 2011 19:03:07 -0400 Subject: [PATCH] temporary fix to urllib quote issue --- oyster/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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