From 358af76f91da61e6ce161c3d80a1d8372ad9296e Mon Sep 17 00:00:00 2001 From: "duncan.parkes" Date: Sat, 20 Jun 2009 16:30:06 +0000 Subject: [PATCH] Make Crawley scraper work with python 2.5... --- python_scrapers/Crawley.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python_scrapers/Crawley.py b/python_scrapers/Crawley.py index 730d16a..f1c3dc3 100644 --- a/python_scrapers/Crawley.py +++ b/python_scrapers/Crawley.py @@ -1,4 +1,5 @@ import urllib2 +import cgi import urlparse import datetime, time import BeautifulSoup @@ -42,7 +43,7 @@ class CrawleyParser: application.council_reference = tds[0].a.contents[0].strip().replace("/", "/") application.info_url = urlparse.urljoin(self.base_url, tds[0].a['href']) - info_qs = urlparse.parse_qs(urlparse.urlsplit(application.info_url)[3]) + info_qs = cgi.parse_qs(urlparse.urlsplit(application.info_url)[3]) comment_qs = { "pAppNo": application.council_reference,