Used for testing uk_planning_scraper Ruby gem in the Morph environment
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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)