Sfoglia il codice sorgente

Add Somerset scraper

import/raw
duncan.parkes 17 anni fa
parent
commit
b32aee3c1c
4 ha cambiato i file con 7 aggiunte e 3 eliminazioni
  1. +3
    -2
      trunk/python_scrapers/AtriumePlanning.py
  2. +2
    -1
      trunk/python_scrapers/Christchurch.cgi
  3. +1
    -0
      trunk/python_scrapers/SitesToGenerate.csv
  4. +1
    -0
      trunk/python_scrapers/WestDorset.cgi

+ 3
- 2
trunk/python_scrapers/AtriumePlanning.py Vedi File

@@ -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
trunk/python_scrapers/Christchurch.cgi Vedi File

@@ -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
trunk/python_scrapers/SitesToGenerate.csv Vedi File

@@ -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
trunk/python_scrapers/WestDorset.cgi Vedi File

@@ -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");
}


Caricamento…
Annulla
Salva