Adrian Short 6 anos atrás
committed by GitHub
commit
85caa071a0
1 arquivos alterados com 10 adições e 0 exclusões
  1. +10
    -0
      aberdeen.rb

+ 10
- 0
aberdeen.rb Ver arquivo

@@ -0,0 +1,10 @@
require 'uk_planning_scraper'
require 'csv'

apps = UKPlanningScraper::Authority.named('Aberdeen').scrape({ validated_days: 200, keywords: 'bt phone kiosk'})
puts "#{apps.size} applications scraped."

CSV.open("aberdeen.csv", "w") do |csv|
csv << apps.first.keys # header row
apps.each { |app| csv << app.values }
end

Carregando…
Cancelar
Salvar