浏览代码

Fix South Gloucestershire - council have changed a URL.

master
duncan.parkes 15 年前
父节点
当前提交
5d0afbd4ba
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. +1
    -1
      SitesToGenerate.csv
  2. +3
    -3
      python_scrapers/WAM.py

+ 1
- 1
SitesToGenerate.csv 查看文件

@@ -254,7 +254,7 @@ full_name,short_name,planning_email,feed_url,external,disabled,notes,base_url,py
"South Bedfordshire District Council","South Bedfordshire",,,,,,http://planning.southbeds.gov.uk/plantech/DCWebPages/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.PgeSearch,AcolnetParser,AcolnetParser,
"South Bucks District Council","South Bucks",,,,,,http://sbdc-paweb.southbucks.gov.uk/publicaccess/tdc/,PublicAccess,PublicAccessParser,
"South Cambridgeshire District Council","South Cambs",,http://scambs.jdi-consult.net/devcon/planningalerts.php?year={year}&month={month}&day={day},1,,"Feed from the guys who run the site :-)",,,,
"South Gloucestershire Council","South Gloucestershire",,http://duncan.devel.disruptiveproactivity.com/South%20Gloucestershire.cgi?day={day}&month={month}&year={year},1,,,http://planning.southglos.gov.uk/WAM/pas/WeeklyApplications.do,WAM,BraintreeParser,
"South Gloucestershire Council","South Gloucestershire",,http://duncan.devel.disruptiveproactivity.com/South%20Gloucestershire.cgi?day={day}&month={month}&year={year},1,,,http://planning.southglos.gov.uk/WAM/weeklyApplications.do,WAM,BraintreeParser,
"South Lakeland District Council","South Lakeland",,,,,,http://www.southlakeland.gov.uk/fastweb/,FastWeb,FastWeb,
"South Norfolk Council","South Norfolk",,,,,,http://planning.south-norfolk.gov.uk/,PlanningExplorer,SouthNorfolkParser,
"South Northamptonshire Council","South Northamptonshire",,,,,,http://snc.planning-register.co.uk/PlanAppList.asp,Shropshire,SouthNorthamptonshireParser,


+ 3
- 3
python_scrapers/WAM.py 查看文件

@@ -175,13 +175,13 @@ if __name__ == '__main__':
#parser = WAMParser("Nottingham", "Nottingham", "http://plan4.nottinghamcity.gov.uk/WAM/pas/searchApplications.do", debug=True)
#parser = PooleParser("Poole long", "Poole", "http://wam.boroughofpoole.com/WAM/pas/searchApplications.do", debug=True)
#parser = WAMParser("Rother long", "Rother", "http://www.planning.rother.gov.uk/WAM/pas/searchApplications.do", debug=True)
# parser = BraintreeParser("South Gloucestershire", "South Gloucestershire", "http://planning.southglos.gov.uk/WAM/pas/WeeklyApplications.do", debug=True)
parser = BraintreeParser("South Gloucestershire", "South Gloucestershire", "http://planning.southglos.gov.uk/WAM/WeeklyApplications.do", debug=True)
parser = BraintreeParser("South Gloucestershire", "South Gloucestershire", "http://planning.southglos.gov.uk/WAM/weeklyApplications.do", debug=True)
# parser = BraintreeParser("South Gloucestershire", "South Gloucestershire", "http://planning.southglos.gov.uk/WAM/WeeklyApplications.do", debug=True)
#parser = WAMParser("South Norfolk", "South Norfolk", "http://wam.south-norfolk.gov.uk/WAM/pas/searchApplications.do", debug=True)
#parser = BraintreeParser("Tower Hamlets", "Tower Hamlets", "http://194.201.98.213/WAM/weeklyApplications.do", debug=True)
#parser = WAMParser("Westminster", "Westminster", "http://idocs.westminster.gov.uk:8080/WAM/search/pas/index.htm", debug=True)

print parser.getResults(12,6,2009)
print parser.getResults(12,8,2009)

# Left to fix



正在加载...
取消
保存