瀏覽代碼

Add Somerset scraper

master
duncan.parkes 17 年之前
父節點
當前提交
69dbd4fd81
共有 4 個文件被更改,包括 7 次插入3 次删除
  1. +3
    -2
      python_scrapers/AtriumePlanning.py
  2. +2
    -1
      python_scrapers/Christchurch.cgi
  3. +1
    -0
      python_scrapers/SitesToGenerate.csv
  4. +1
    -0
      python_scrapers/WestDorset.cgi

+ 3
- 2
python_scrapers/AtriumePlanning.py 查看文件

@@ -116,5 +116,6 @@ if __name__ == '__main__':

# print cumbria_parser.getResults(22,11,2007)

parser = AtriumePlanningParser("Dorset County Council", "Dorset", "http://www.dorsetforyou.com/ePlanning/loadResults.do")
print parser.getResults(13,11,2007)
#parser = AtriumePlanningParser("Dorset County Council", "Dorset", "http://www.dorsetforyou.com/ePlanning/loadResults.do")
parser = AtriumePlanningParser("Somerset County Council", "Somerset", "http://webapp1.somerset.gov.uk/ePlanning/loadResults.do")
print parser.getResults(1,11,2007)

+ 2
- 1
python_scrapers/Christchurch.cgi 查看文件

@@ -11,7 +11,7 @@ use XML::Writer;

# The master URLs for the Christchurch planning search
our $SearchURL = "http://webapps.christchurch.gov.uk/PlanningApplications/pages/ApplicationSearch.aspx";
our $InfoURL = "http://webapps.chirstchurch.gov.uk/PlanningApplications/pages/ApplicationDetails.aspx?Authority=Christchurch%20Borough%20Council&Application=";
our $InfoURL = "http://webapps.christchurch.gov.uk/PlanningApplications/pages/ApplicationDetails.aspx?Authority=Christchurch%20Borough%20Council&Application=";

# We're a CGI script...
my $query = CGI->new();
@@ -139,6 +139,7 @@ sub output_applications
$Writer->dataElement("postcode", $postcode);
$Writer->dataElement("description", $description);
$Writer->dataElement("info_url", $InfoURL . $reference);
$Writer->dataElement("comment_url", $InfoURL . $reference);
$Writer->dataElement("date_received", $date);
$Writer->endTag("application");
}


+ 1
- 0
python_scrapers/SitesToGenerate.csv 查看文件

@@ -183,3 +183,4 @@
"Swansea City and County", "Swansea", "http://www2.swansea.gov.uk/", "PlanningExplorer", "SwanseaParser"
"Shrewsbury and Atcham Borough Council", "Shrewsbury", "http://www2.shrewsbury.gov.uk/", "PlanningExplorer", "ShrewsburyParser"
"Dorset County Council", "Dorset", "http://www.dorsetforyou.com/ePlanning/loadResults.do", "AtriumePlanning", "AtriumePlanningParser"
"Somerset County Council", "Somerset", "http://webapp1.somerset.gov.uk/ePlanning/loadResults.do", "AtriumePlanning", "AtriumePlanningParser"

+ 1
- 0
python_scrapers/WestDorset.cgi 查看文件

@@ -139,6 +139,7 @@ sub output_applications
$Writer->dataElement("postcode", $postcode);
$Writer->dataElement("description", $description);
$Writer->dataElement("info_url", $InfoURL . $reference);
$Writer->dataElement("comment_url", $InfoURL . $reference);
$Writer->dataElement("date_received", $date);
$Writer->endTag("application");
}


Loading…
取消
儲存