Planning applications tracker for InLinkUK from BT kiosks. https://kiosks.adrianshort.org/
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.
 
 
 
 
 

17 lines
406 B

  1. #!/usr/bin/env ruby
  2. require 'scraperwiki'
  3. require 'rest-client'
  4. require 'json'
  5. require 'pp'
  6. morph_api_url = 'https://api.morph.io/adrianshort/inlink-scraper/data.json'
  7. result = RestClient.get(morph_api_url, params: {
  8. key: ENV['MORPH_API_KEY'],
  9. query: "select * from applications"
  10. })
  11. apps = JSON.parse(result)
  12. ScraperWiki.save_sqlite(['authority_name', 'council_reference'], apps, 'applications')