浏览代码

Rather embarrassing import failure...

master
duncan.parkes 17 年前
父节点
当前提交
7e0b91275e
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      python_scrapers/AcolnetParser.py
  2. +2
    -2
      python_scrapers/PlanningExplorer.py

+ 1
- 1
python_scrapers/AcolnetParser.py 查看文件

@@ -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 查看文件

@@ -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/")


正在加载...
取消
保存