packi / switzerland-parlament

Morph-based scraper


This is a scraper that runs on Morph. To get started see the documentation

Contributors tmtmtmtm

Last run completed successfully .

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... {:id=>51, :name=>"51. Legislatur", :start_date=>"2019-12-02", :end_date=>"2023-12-03"} {:id=>50, :name=>"50. Legislatur", :start_date=>"2015-11-30", :end_date=>"2019-12-01"} {:id=>49, :name=>"49. Legislatur", :start_date=>"2011-12-05", :end_date=>"2015-11-29"} {:id=>48, :name=>"48. Legislatur", :start_date=>"2007-12-03", :end_date=>"2011-12-04"} {:id=>47, :name=>"47. Legislatur", :start_date=>"2003-12-01", :end_date=>"2007-12-02"} {:id=>46, :name=>"46. Legislatur", :start_date=>"1999-12-06", :end_date=>"2003-11-30"} {:id=>45, :name=>"45. Legislatur", :start_date=>"1995-12-04", :end_date=>"1999-12-05"} {:id=>44, :name=>"44. Legislatur", :start_date=>"1991-11-25", :end_date=>"1995-12-03"} {:id=>43, :name=>"43. Legislatur", :start_date=>"1987-11-30", :end_date=>"1991-11-24"} {:id=>42, :name=>"42. Legislatur", :start_date=>"1983-11-28", :end_date=>"1987-11-29"} {:id=>41, :name=>"41. Legislatur", :start_date=>"1979-11-26", :end_date=>"1983-11-27"} {:id=>40, :name=>"40. Legislatur", :start_date=>"1975-12-01", :end_date=>"1979-11-25"} {:id=>39, :name=>"39. Legislatur", :start_date=>"1971-11-29", :end_date=>"1975-11-30"} {:id=>38, :name=>"38. Legislatur", :start_date=>"1967-12-04", :end_date=>"1971-11-28"} {:id=>37, :name=>"37. Legislatur", :start_date=>"1963-12-02", :end_date=>"1967-12-03"}

Data

Downloaded 2 times by packi

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (645 KB) Use the API

rows 10 / 15

id name start_date end_date
51
51. Legislatur
2019-12-02
2023-12-03
50
50. Legislatur
2015-11-30
2019-12-01
49
49. Legislatur
2011-12-05
2015-11-29
48
48. Legislatur
2007-12-03
2011-12-04
47
47. Legislatur
2003-12-01
2007-12-02
46
46. Legislatur
1999-12-06
2003-11-30
45
45. Legislatur
1995-12-04
1999-12-05
44
44. Legislatur
1991-11-25
1995-12-03
43
43. Legislatur
1987-11-30
1991-11-24
42
42. Legislatur
1983-11-28
1987-11-29

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (645 KB) Use the API

rows 10 / 3271

id identifier__parlamentdotch name sort_name given_name family_name birth_date gender area area_id council council_id party party_id faction faction_id term source end_date start_date
4154
4154
Jean-Luc Addor
Addor, Jean-Luc
Jean-Luc
Addor
1964-04-22
male
Wallis
VS
NR
1
SVP
0
V
4
51
3867
3867
Andreas Aebi
Aebi, Andreas
Andreas
Aebi
1958-11-26
male
Bern
BE
NR
1
SVP
0
V
4
51
4049
4049
Matthias Aebischer
Aebischer, Matthias
Matthias
Aebischer
1967-10-18
male
Bern
BE
NR
1
SP
0
S
2
51
4053
4053
Thomas Aeschi
Aeschi, Thomas
Thomas
Aeschi
1979-01-13
male
Zug
ZG
NR
1
SVP
0
V
4
51
4090
4090
Céline Amaudruz
Amaudruz, Céline
Céline
Amaudruz
1979-03-15
female
Genf
GE
NR
1
SVP
0
V
4
51
4245
4245
Gerhard Andrey
Andrey, Gerhard
Gerhard
Andrey
1976-01-21
male
Freiburg
FR
NR
1
GPS
0
G
6
51
4184
4184
Sibel Arslan
Arslan, Sibel
Sibel
Arslan
1980-06-23
female
Basel-Stadt
BS
NR
1
BastA
0
G
6
51
4304
4304
Mustafa Atici
Atici, Mustafa
Mustafa
Atici
1969-10-02
male
Basel-Stadt
BS
NR
1
SP
0
S
2
51
4246
4246
Christine Badertscher
Badertscher, Christine
Christine
Badertscher
1982-01-11
female
Bern
BE
NR
1
GPS
0
G
6
51
4058
4058
Jacqueline Badran
Badran, Jacqueline
Jacqueline
Badran
1961-11-12
female
Zürich
ZH
NR
1
SP
0
S
2
51

Statistics

Average successful run time: 1 minute

Total run time: 3 minutes

Total cpu time used: less than 10 seconds

Total disk space used: 687 KB

History

  • Manually ran revision a55016fb and completed successfully .
    3286 records added, 3084 records removed in the database
  • Manually ran revision f133855d and completed successfully .
    3084 records added in the database
  • Created on morph.io

Scraper code

Ruby

switzerland-parlament / scraper.rb