Contributors tmtmtmtm

Last run completed successfully .

Console output of last run

Injecting configuration and compiling...  -----> Ruby app detected -----> Compiling Ruby -----> Using Ruby version: ruby-2.0.0 -----> Installing dependencies using bundler 1.15.2  Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment  Fetching gem metadata from https://rubygems.org/........  Fetching version metadata from https://rubygems.org/..  Fetching dependency metadata from https://rubygems.org/.  Fetching https://github.com/openaustralia/scraperwiki-ruby.git  Rubygems 2.0.14.1 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.  Using bundler 1.15.2  Fetching coderay 1.1.0  Installing coderay 1.1.0  Fetching colorize 0.7.7  Installing colorize 0.7.7  Fetching excon 0.45.4  Installing excon 0.45.4  Fetching execjs 2.5.2  Installing execjs 2.5.2  Fetching multipart-post 2.0.0  Installing multipart-post 2.0.0  Fetching fuzzy_match 2.1.0  Installing fuzzy_match 2.1.0  Fetching hashie 3.4.2  Installing hashie 3.4.2  Fetching httpclient 2.6.0.1  Installing httpclient 2.6.0.1  Fetching method_source 0.8.2  Installing method_source 0.8.2  Fetching mini_portile 0.6.2  Installing mini_portile 0.6.2  Fetching open-uri-cached 0.0.5  Installing open-uri-cached 0.0.5  Fetching slop 3.6.0  Installing slop 3.6.0  Fetching sqlite3 1.3.10  Installing sqlite3 1.3.10 with native extensions  Fetching faraday 0.9.1  Installing faraday 0.9.1  Fetching nokogiri 1.6.6.2  Installing nokogiri 1.6.6.2 with native extensions  Fetching pry 0.10.1  Installing pry 0.10.1  Fetching sqlite_magic 0.0.3  Installing sqlite_magic 0.0.3  Fetching faraday_middleware 0.10.0  Installing faraday_middleware 0.10.0  Using scraperwiki 3.0.1 from https://github.com/openaustralia/scraperwiki-ruby.git (at morph_defaults@fc50176)  Fetching wikidata-client 0.0.7  Installing wikidata-client 0.0.7  Bundle complete! 8 Gemfile dependencies, 21 gems now installed.  Gems in the groups development and test were not installed.  Bundled gems are installed into ./vendor/bundle.  Bundle completed (18.76s)  Cleaning up the bundler cache. -----> Installing node-v6.11.1-linux-x64 -----> Detecting rake tasks   -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running... Fetching http://data.riksdagen.se/personlista/?iid=&fnamn=&enamn=&f_ar=&kn=&parti=&valkrets=&rdlstatus=samtliga&org=&utformat=xml&termlista= Invalid dates: {:start_date=>"2010-04-28", :end_date=>"2006-02-20", :substitute=>"", :term=>nil}

Data

Downloaded 1226 times by everypolitician tmtmtmtm MikeRalphson ondenman

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (2.35 MB) Use the API

rows 10 / 12

id name start_date end_date
1976
1976–1979
1976-10-04
1979-10-01
1979
1979–1982
1979-10-01
1982-10-04
1982
1982–1985
1982-10-04
1985-09-30
1985
1985–1988
1985-09-30
1988-10-03
1988
1988–1991
1988-10-03
1991-09-30
1991
1991–1994
1991-09-30
1994-10-03
1994
1994–1998
1994-10-03
1998-10-05
1998
1998–2002
1998-10-05
2002-09-30
2002
2002–2006
2002-09-30
2006-10-02
2006
2006–2010
2006-10-02
2010-10-04

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (2.35 MB) Use the API

rows 10 / 5227

id party_id party constituency birth_date gender name family_name given_name sort_name website email facebook twitter linkedin image source start_date end_date term substitute death_date
0237055280513
KD
Kristdemokraterna
Västra Götalands läns västra
1951
male
Roland Utbult
Utbult
Roland
Roland
roland.utbult@riksdagen.se
2016-04-25
2018-09-24
2014
0251617324715
S
Socialdemokraterna
Västerbottens län
1954
female
Katarina Köhler
Köhler
Katarina
Katarina
katarina.kohler@riksdagen.se
2016-05-01
2018-09-24
2014
014386615025
V
Vänsterpartiet
Stockholms län
1976
male
Ali Esbati
Esbati
Ali
Ali
ali.esbati@riksdagen.se
2016-06-17
2018-09-24
2014
0502688311316
S
Socialdemokraterna
Stockholms län
1957
female
Anna Vikström
Vikström
Anna
Anna
anna.vikstrom@riksdagen.se
2016-08-14
2017-04-01
2014
Mikael Damberg
0251617324715
S
Socialdemokraterna
Västerbottens län
1954
female
Katarina Köhler
Köhler
Katarina
Katarina
katarina.kohler@riksdagen.se
2016-10-16
2018-09-24
2014
0190560012714
M
Moderata samlingspartiet
Värmlands län
1961
female
Pia Hallström
Hallström
Pia
Pia
pia.hallstrom@riksdagen.se
2016-10-31
2018-09-24
2014
0111479807829
S
Socialdemokraterna
Skåne läns norra och östra
1985
female
Anna Wallentheim
Wallentheim
Anna
Anna
anna.wallentheim@riksdagen.se
2017-01-01
2018-09-24
2014
0182800488922
SD
Sverigedemokraterna
Kalmar län
1988
female
Paula Bieler
Bieler
Paula
Paula
paula.bieler@riksdagen.se
2016-11-21
2018-09-24
2014
0638497389621
SD
Sverigedemokraterna
Stockholms län
1980
female
Julia Kronlid
Kronlid
Julia
Julia
julia.kronlid@riksdagen.se
2017-01-07
2018-09-24
2014
0251617324715
S
Socialdemokraterna
Västerbottens län
1954
female
Katarina Köhler
Köhler
Katarina
Katarina
katarina.kohler@riksdagen.se
2017-01-13
2018-09-24
2014

Statistics

Average successful run time: 3 minutes

Total run time: 1 day

Total cpu time used: about 1 hour

Total disk space used: 2.38 MB

History

  • Auto ran revision 1079c920 and completed successfully .
    5215 records added, 5215 records removed in the database
    89 pages scraped
  • Auto ran revision 1079c920 and completed successfully .
    5215 records added, 5215 records removed in the database
    1 page scraped
  • Auto ran revision 1079c920 and failed .
    nothing changed in the database
  • Auto ran revision 1079c920 and failed .
    nothing changed in the database
  • Auto ran revision 1079c920 and failed .
    nothing changed in the database
  • ...
  • Created on morph.io

Show complete history

Scraper code

Ruby

sweden-parliament-api / scraper.rb