Przeglądaj źródła

Make Crawley scraper work with python 2.5...

import/raw
duncan.parkes@gmail.com 15 lat temu
rodzic
commit
be24641c3c
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      trunk/python_scrapers/Crawley.py

+ 2
- 1
trunk/python_scrapers/Crawley.py Wyświetl plik

@@ -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,


Ładowanie…
Anuluj
Zapisz