Used for testing uk_planning_scraper Ruby gem in the Morph environment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 年之前
6 年之前
12345
  1. require 'uk_planning_scraper'
  2. require 'scraperwiki'
  3. apps = UKPlanningScraper::Authority.named(ENV['MORPH_AUTHORITY_NAME']).scrape({ validated_days: ENV['MORPH_DAYS'].to_i })
  4. ScraperWiki.save_sqlite([:authority_name, :council_reference], apps)