Planning applications from all 35 London local planning authorities
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

16 rindas
487 B

  1. require 'uk_planning_scraper'
  2. require 'scraperwiki'
  3. auths = UKPlanningScraper::Authority.tagged('london')
  4. auths.each_with_index do |auth, i|
  5. begin
  6. puts "#{i + 1} of #{auths.size}: Scraping #{auth.name}"
  7. apps = auth.scrape({ decided_days: ENV['MORPH_DAYS'].to_i })
  8. ScraperWiki.save_sqlite([:authority_name, :council_reference], apps)
  9. puts "#{auth.name}: #{apps.size} application(s) saved."
  10. rescue UKPlanningScraper::SystemNotSupportedError => e
  11. puts e
  12. end
  13. end