Permalink
Browse files

New term

  • Loading branch information...
tmtmtmtm committed Mar 14, 2016
1 parent de88546 commit 6537416c3463d7cbe0a50b1b239d73ccb5ae76bf
Showing with 2 additions and 1 deletion.
  1. +2 −1 scraper.rb
View
@@ -28,8 +28,9 @@ def scrape_list(url)
name: person.css('.title').text.tidy,
area: person.text[/округ № (\d+)/, 1],
image: person.css('a img/@src').text,
term: 5,
term: 6,
source: source,
last_seen: Date.today.to_s,
}
%i(source image).each { |i| data[i] = URI.join(url, data[i]).to_s unless data[i].to_s.empty? }
ScraperWiki.save_sqlite([:id, :term], data)

0 comments on commit 6537416

Please sign in to comment.