Переглянути джерело

Change Cheltenham to the python scraper.

master
duncan.parkes 15 роки тому
джерело
коміт
579a53a1cd
2 змінених файлів з 1 додано та 33 видалено
  1. +1
    -1
      SitesToGenerate.csv
  2. +0
    -32
      docs/scrapers/cheltenham.php

+ 1
- 1
SitesToGenerate.csv Переглянути файл

@@ -57,7 +57,7 @@
"Castle Point Borough Council","Castle Point",,,,,,"http://planning.castlepoint.gov.uk/portal/page?_pageid=35,38205&_dad=portal&_schema=PORTAL","Ocella","OcellaParser",
"Charnwood Borough Council","Charnwood",,"http://duncan.devel.disruptiveproactivity.com/Charnwood.cgi?day={day}&month={month}&year={year}",1,,,"http://portal.charnwoodbc.gov.uk/","PlanningExplorer","CharnwoodParser",
"Chelmsford Borough Council","Chelmsford",,,,,,"http://web1.chelmsfordbc.gov.uk/publicaccess/tdc/","PublicAccess","PublicAccessParser",
"Cheltenham Borough Council","Cheltenham",,,,,,,,,"cheltenham"
"Cheltenham Borough Council","Cheltenham",,,,,,"http://planning.cheltenham.gov.uk/PublicAccess/tdc/","PublicAccess","PublicAccessParser",
"Cherwell District Council","Cherwell",,,,,,"http://cherweb.cherwell-dc.gov.uk/publicaccess/tdc/","PublicAccess","PublicAccessParser",
"Cheshire East Council","Cheshire East",,,,,"New unitary authority currently using old Macclesfield site.","http://www.planportal.macclesfield.gov.uk/swiftlg/apas/run/","SwiftLG","MacclesfieldParser",
"Chester-le-Street District Council","Chester-le-Street",,,,,,"http://planning.chester-le-street.gov.uk/publicaccess/tdc/","PublicAccess","PublicAccessParser",


+ 0
- 32
docs/scrapers/cheltenham.php Переглянути файл

@@ -1,32 +0,0 @@
<?php

//Includes
require_once('config.php');
require_once('application.php');

if (isset($_GET['day'])){
$day = $_GET['day'];
}
if (isset($_GET['month'])){
$month = $_GET['month'];
}
if (isset($_GET['year'])){
$year = $_GET['year'];
}

//search url
$search_url = "http://planning.cheltenham.gov.uk/PublicAccess/tdc/DcApplication/application_searchresults.aspx?searchtype=WEEKLY&selWeeklyListRange=#daterange&weektype=VAL";
$date_range = "{$day}%2F{$month}%2F{$year}%7C{$day}%2F{$month}%2F{$year}";
$search_url = str_replace("#daterange", $date_range, $search_url);

//comment and info urls
$info_url_base = "http://planning.cheltenham.gov.uk/PublicAccess/tdc/DcApplication/application_detailview.aspx?caseno=";
$comment_url_base = "http://planning.cheltenham.gov.uk/PublicAccess/tdc/DcApplication/application_comments_entryform.aspx?caseno=";
//grab urls
$applications = scrape_applications_publicaccess($search_url, $info_url_base, $comment_url_base);

//Display applications
display_applications($applications, "Cheltenham Borough Council", "Cheltenham Borough");

?>

Завантаження…
Відмінити
Зберегти