Giter VIP home page Giter VIP logo

planningalerts-parsers's Introduction

planningalerts-parsers's People

Contributors

andrewharvey avatar clockwerx avatar henare avatar jwells avatar mindsocket avatar mlandauer avatar mradrianmiller avatar peterneish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

planningalerts-parsers's Issues

ScraperWiki: Bankstown City Council, Bankstown, NSW - Broken URL & page changed

Was 02534ff

A brief look at what is in github suggests this still works, there is just a clickwrap agreement (http://online.bankstown.nsw.gov.au/Planning/Common/Common/Terms.aspx) you are prompted with first.

Code does:

  base_url = "http://online.bankstown.nsw.gov.au/Planning/pages/xc.track/SearchApplication.aspx"
  search_url = base_url + "?o=xml&d=#{date_range}&k=LodgementDate&t=#396"

and URLs like the below still work.

http://online.bankstown.nsw.gov.au/Planning/pages/xc.track/SearchApplication.aspx?o=html&d=lastmonth&k=LodgementDate&t=%23396&ss=a

ScraperWiki: City of Burnside, Burnside, SA - Broken (page changed)

02534ff

The code looks at

http://www.burnside.sa.gov.au/Develop/Planning_Development/Development_Applications/Development_Applications_on_Public_Notification

It looks like the page has been split into

Broadly the code should work.

  m = page.at('p.defaultAbstract').inner_text.match(/Closing Date: (\d+\/\d+\/\d+)/)
  on_notice_to = Date.strptime(m[1], "%d/%m/%Y").to_s

  s = page.at('table').search('td strong')

  record = {
    "council_reference" => s.find{|a| a.inner_text.strip == "Application No:"}.next_sibling.to_s,
    "description" => s.find{|a| a.inner_text.strip == "Nature of Development:"}.next_sibling.to_s,
    "address" => page.at('h2').inner_text + ", SA",

... should still match listings like:

<td style="border-top: none; border-left: none; border-right: none; border-bottom: 1px solid #e5e5e5; padding-left: 20px; padding-right: 20px;">
      <h4>23 Ormond Grove, Toorak Gardens</h4>
      <p><span class="defaultAbstract">Alterations and additions consisting of demolition of existing pool and rear verandah and construction of new pool, verandah, pool pavilion, decking, feature wall and fence attached to retaining wall.</span></p>
      <p style="margin-top: -5px; margin-bottom: -5px;"><strong>Closing Date: </strong>09/01/2014</p>
      <p><a href="http://www.burnside.sa.gov.au/Develop/Planning_Development/Development_Applications_on_Public_Notification/Category_2_Development_Applications/23_Ormond_Grove_Toorak_Gardens">View More</a></p>
    </td>

... though the show pages are more detailed.

Moreland scraper

Hi,
I live in the LGA area of Moreland, in Victoria.
It encompasses such suburbs as Brunswick, Coburg, Pascoe Vale, Glenroy and Fawkner.

I'd like to write a scraper for the area, as I can't see one here at the moment. However I notice that if I search for an address in Brunswick, results do come back.
Does this mean someone has already written one?

My previous experience with writing scrapers includes ones that scrape the REIV and realestate.com.au websites.

Thanks,
Toby

kuringgai broken / Implement a Masterview 2.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.