Skip to content

Commit

Permalink
Merge pull request #2 from everypolitician-scrapers/update-term
Browse files Browse the repository at this point in the history
Update the term period
  • Loading branch information
octopusinvitro committed Sep 6, 2016
2 parents 5c8d314 + af076bc commit d196962
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def scrape_list(gender, url)
email: mp.css('a[href*="mailto:"]/@href').text,
image: mp.css('img[src*="lists_images"]/@src').text,
gender: gender,
term: '2010',
term: '2016',
source: url,
}
data[:image] = URI.join(url, data[:image]).to_s unless data[:image].to_s.empty?
Expand All @@ -37,9 +37,9 @@ def scrape_list(gender, url)
end

term = {
id: '2010',
name: '2010–2016',
start_date: '2010',
id: '2016',
name: '2016–2020',
start_date: '2016',
source: 'https://en.wikipedia.org/wiki/Chamber_of_Deputies_of_the_Dominican_Republic',
}
ScraperWiki.save_sqlite([:id], term, 'terms')
Expand Down

0 comments on commit d196962

Please sign in to comment.