Преглед изворни кода

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…
Откажи
Сачувај