Scripts:

  • fetch.rb: descarga todos las páginas del Registro de Partidos Políticos del Ministerio de Interior.

  • parse.rb: parsea todos las páginas previamente descargadas, extrayendo los datos de cada partido político y guardándolos en partidos.csv.

Last run failed with status code 1.

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... Fetchin party 4198... /app/vendor/bundle/ruby/2.0.0/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb:641:in `rescue in connection_for': connection refused: servicio.mir.es:80 (Net::HTTP::Persistent::Error) from /app/vendor/bundle/ruby/2.0.0/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb:589:in `connection_for' from /app/vendor/bundle/ruby/2.0.0/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb:994:in `request' from /app/vendor/bundle/ruby/2.0.0/gems/mechanize-2.7.3/lib/mechanize/http/agent.rb:259:in `fetch' from /app/vendor/bundle/ruby/2.0.0/gems/mechanize-2.7.3/lib/mechanize.rb:440:in `get' from scraper.rb:14:in `block in <main>' from scraper.rb:10:in `upto' from scraper.rb:10:in `<main>'

Statistics

Total run time: less than 20 seconds

Total cpu time used: less than 5 seconds

Total disk space used: 2.73 MB

History

  • Manually ran revision ae79d99e and failed .
    nothing changed in the database
  • Manually ran revision 12206a3e and failed .
    nothing changed in the database
  • Created on morph.io

Scraper code

party-register