tmtmtmtm / spain-proyectocolibri

Legislators of Spain


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

Contributors tmtmtmtm

Last run failed with status code 1.

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/open-uri.rb:353:in `open_http': 502 Bad Gateway (OpenURI::HTTPError) from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/open-uri.rb:709:in `buffer_open' from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/open-uri.rb:210:in `block in open_loop' from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/open-uri.rb:208:in `catch' from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/open-uri.rb:208:in `open_loop' from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri' from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/open-uri.rb:689:in `open' from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/open-uri.rb:34:in `open' from scraper.rb:14:in `json_at' from scraper.rb:27:in `<main>'

Data

Downloaded 532 times by everypolitician octopusinvitro MikeRalphson

To download data sign in with GitHub

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

rows 1 / 1

id name start_date
10
X Legislatura
2011-11-28

To download data sign in with GitHub

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

rows 10 / 397

id name sort_name given_name family_name party party_id area start_date end_date email twitter term source
171
Ernesto Aguiar
Aguiar Rodríguez, Ernesto
Ernesto
Aguiar Rodríguez
PP
1
Santa Cruz de Tenerife
2011-12-01
10
349
Amparo Ferrando
Ferrando Sendra, Amparo
Amparo
Ferrando Sendra
PP
1
Alicante
2011-12-12
amparo.ferrando@congreso.es
10
276
José Eugenio Azpiroz
Azpiroz Villar, José Eugenio
José Eugenio
Azpiroz Villar
PP
1
Gipuzkoa
2011-12-05
10
344
Esperança Esteve
Esteve Ortega, Esperança
Esperança
Esteve Ortega
PSC-PSOE
7
Barcelona
2011-12-12
eesteve@congreso.es
10
4
María de la O Ares
Ares Martínez-Fortún, María de la O
María de la O
Ares Martínez-Fortún
PP
1
Illes Balears
2011-11-28
maria.ares@congreso.es
10
275
Joan Baldoví
Baldoví Roda, Joan
Joan
Baldoví Roda
COMPROMÍS-Q
10
Valencia
2011-12-05
joan.baldovi@congreso.es
10
357
Paloma García
García Gálvez, Paloma
Paloma
García Gálvez
PP
1
Málaga
2012-01-10
2012-06-25
10
35
Miguel Arias
Arias Cañete, Miguel
Miguel
Arias Cañete
PP
1
Madrid
2011-11-29
10
246
Josu Iñaki Erkoreka
Erkoreka Gervasio, Josu Iñaki
Josu Iñaki
Erkoreka Gervasio
EAJ-PNV
11
Bizkaia
2011-12-02
2012-12-17
10
355
Rogelio Araújo
Araújo Gil, Rogelio
Rogelio
Araújo Gil
PP
1
Illes Balears
2012-01-10
10

Statistics

Average successful run time: less than 20 seconds

Total run time: about 2 hours

Total cpu time used: half a minute

Total disk space used: 187 KB

History

  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
    4 pages scraped
  • Auto ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
  • Manually ran revision 3cc7dedb and failed .
    1 record added, 1 record removed in the database
    4 pages scraped
  • Manually ran revision 3cc7dedb and completed successfully .
    398 records added in the database
    2 pages scraped
  • Manually ran revision 3cc7dedb and completed successfully .
    398 records added, 398 records removed in the database
    2 pages scraped
  • Manually ran revision 2ecdfe35 and completed successfully .
    398 records added in the database
    2 pages scraped
  • Manually ran revision 37629a2d and completed successfully .
    nothing changed in the database
  • Created on morph.io

Scraper code

Ruby

spain-proyectocolibri / scraper.rb