Przeglądaj źródła

Rather embarrassing import failure...

master
duncan.parkes 17 lat temu
rodzic
commit
7e0b91275e
2 zmienionych plików z 3 dodań i 3 usunięć
  1. +1
    -1
      python_scrapers/AcolnetParser.py
  2. +2
    -2
      python_scrapers/PlanningExplorer.py

+ 1
- 1
python_scrapers/AcolnetParser.py Wyświetl plik

@@ -31,7 +31,7 @@ system_key_regex = re.compile("TheSystemkey=(\d*)", re.IGNORECASE)
end_head_regex = re.compile("</head>?", re.IGNORECASE)


class AcolnetParser(HTMLParser.HTMLParser):
class AcolnetParser:
received_date_format = "%d/%m/%Y"

comment_qs_template = "ACTION=UNWRAP&RIPNAME=Root.PgeCommentForm&TheSystemkey=%s"


+ 2
- 2
python_scrapers/PlanningExplorer.py Wyświetl plik

@@ -545,7 +545,7 @@ if __name__ == '__main__':
#parser = BlackburnParser("Blackburn With Darwen Borough Council", "Blackburn", "http://195.8.175.6/")
#parser = BroadlandParser("Broadland Council", "Broadland", "http://www.broadland.gov.uk/")
#parser = CamdenParser("London Borough of Camden", "Camden", "http://planningrecords.camden.gov.uk/")
parser = CamdenParser("London Borough of Camden", "Camden", "http://planningrecords.camden.gov.uk/")
#parser = CharnwoodParser("Charnwood Borough Council", "Charnwood", "http://portal.charnwoodbc.gov.uk/")
#parser = CreweParser("Crewe and Nantwich Borough Council", "Crewe and Nantwich", "http://portal.crewe-nantwich.gov.uk/")
#parser = EastStaffsParser("East Staffordshire Borough Council", "East Staffs", "http://www2.eaststaffsbc.gov.uk/")
@@ -555,7 +555,7 @@ if __name__ == '__main__':
#parser = KennetParser("Kennet District Council", "Kennet", "http://mvm-planning.kennet.gov.uk/")
#parser = LincolnParser("Lincoln City Council", "Lincoln", "http://online.lincoln.gov.uk/")
#parser = LiverpoolParser("Liverpool City Council", "Liverpool", "http://www.liverpool.gov.uk/")
parser = ShrewsburyParser("Shrewsbury and Atcham Borough Council", "Shrewsbury", "http://www2.shrewsbury.gov.uk/")
#parser = ShrewsburyParser("Shrewsbury and Atcham Borough Council", "Shrewsbury", "http://www2.shrewsbury.gov.uk/")
#parser = SouthNorfolkParser("South Norfolk Council", "South Norfolk", "http://planning.south-norfolk.gov.uk/")
#parser = SouthShropshireParser("South Shropshire District Council", "South Shropshire", "http://194.201.44.102/")
#parser = SouthTynesideParser("South Tyneside Council", "South Tyneside", "http://poppy.southtyneside.gov.uk/")


Ładowanie…
Anuluj
Zapisz