Planning applications tracker for InLinkUK from BT kiosks. https://kiosks.adrianshort.org/
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

16 行
341 B

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