codeforcroatia / croatia-parliament

Scrapes www.sabor.hr

Hrvatski sabor - Naslovna


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...  -----> 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 (19.00s)  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... http://www.sabor.hr/lgs.axd?t=24&id=7163 http://www.sabor.hr/lgs.axd?t=24&id=7641 http://www.sabor.hr/lgs.axd?t=24&id=7597 http://www.sabor.hr/lgs.axd?t=24&id=7051 http://www.sabor.hr/lgs.axd?t=24&id=7595 http://www.sabor.hr/lgs.axd?t=24&id=7197 http://www.sabor.hr/lgs.axd?t=24&id=7217 http://www.sabor.hr/lgs.axd?t=24&id=7211 http://www.sabor.hr/lgs.axd?t=24&id=7106 http://www.sabor.hr/lgs.axd?t=24&id=7042 http://www.sabor.hr/lgs.axd?t=24&id=7376 http://www.sabor.hr/lgs.axd?t=24&id=7207 http://www.sabor.hr/lgs.axd?t=24&id=7433 http://www.sabor.hr/lgs.axd?t=24&id=7055 http://www.sabor.hr/lgs.axd?t=24&id=7139 http://www.sabor.hr/lgs.axd?t=24&id=7059 http://www.sabor.hr/lgs.axd?t=24&id=7047 http://www.sabor.hr/lgs.axd?t=24&id=7125 http://www.sabor.hr/lgs.axd?t=24&id=7205 http://www.sabor.hr/lgs.axd?t=24&id=7053 http://www.sabor.hr/lgs.axd?t=24&id=7111 http://www.sabor.hr/lgs.axd?t=24&id=19715 http://www.sabor.hr/lgs.axd?t=24&id=7584 http://www.sabor.hr/lgs.axd?t=24&id=7185 http://www.sabor.hr/lgs.axd?t=24&id=7181 http://www.sabor.hr/lgs.axd?t=24&id=7108 http://www.sabor.hr/lgs.axd?t=24&id=7564 http://www.sabor.hr/lgs.axd?t=24&id=7213 http://www.sabor.hr/lgs.axd?t=24&id=7032 http://www.sabor.hr/lgs.axd?t=24&id=7330 http://www.sabor.hr/lgs.axd?t=24&id=7145 http://www.sabor.hr/lgs.axd?t=24&id=7038 http://www.sabor.hr/lgs.axd?t=24&id=7457 http://www.sabor.hr/lgs.axd?t=24&id=7149 http://www.sabor.hr/lgs.axd?t=24&id=7219 http://www.sabor.hr/lgs.axd?t=24&id=7074 http://www.sabor.hr/lgs.axd?t=24&id=7209 http://www.sabor.hr/lgs.axd?t=24&id=6990 http://www.sabor.hr/lgs.axd?t=24&id=7040 http://www.sabor.hr/lgs.axd?t=24&id=7008 http://www.sabor.hr/lgs.axd?t=24&id=7133 http://www.sabor.hr/lgs.axd?t=24&id=7449 http://www.sabor.hr/lgs.axd?t=24&id=7362 http://www.sabor.hr/lgs.axd?t=24&id=7012 http://www.sabor.hr/lgs.axd?t=24&id=7223 http://www.sabor.hr/lgs.axd?t=24&id=7227 http://www.sabor.hr/lgs.axd?t=24&id=7014 http://www.sabor.hr/lgs.axd?t=24&id=7028 http://www.sabor.hr/lgs.axd?t=24&id=7309 http://www.sabor.hr/lgs.axd?t=24&id=7064 http://www.sabor.hr/lgs.axd?t=24&id=7607 http://www.sabor.hr/lgs.axd?t=24&id=7455 http://www.sabor.hr/lgs.axd?t=24&id=7364 http://www.sabor.hr/lgs.axd?t=24&id=7165 http://www.sabor.hr/lgs.axd?t=24&id=7143 http://www.sabor.hr/lgs.axd?t=24&id=7151 http://www.sabor.hr/lgs.axd?t=24&id=7445 http://www.sabor.hr/lgs.axd?t=24&id=7201 http://www.sabor.hr/lgs.axd?t=24&id=7451 http://www.sabor.hr/lgs.axd?t=24&id=7080 http://www.sabor.hr/lgs.axd?t=24&id=7229 http://www.sabor.hr/lgs.axd?t=24&id=7098 http://www.sabor.hr/lgs.axd?t=24&id=6996 http://www.sabor.hr/lgs.axd?t=24&id=7084 http://www.sabor.hr/lgs.axd?t=24&id=7344 http://www.sabor.hr/lgs.axd?t=24&id=7225 http://www.sabor.hr/lgs.axd?t=24&id=7088 http://www.sabor.hr/lgs.axd?t=24&id=7453 http://www.sabor.hr/lgs.axd?t=24&id=7577 http://www.sabor.hr/lgs.axd?t=24&id=7086 No faction: setting to Independent http://www.sabor.hr/lgs.axd?t=24&id=7356 http://www.sabor.hr/lgs.axd?t=24&id=7179 http://www.sabor.hr/lgs.axd?t=24&id=7049 http://www.sabor.hr/lgs.axd?t=24&id=7475 http://www.sabor.hr/lgs.axd?t=24&id=7189 http://www.sabor.hr/lgs.axd?t=24&id=7115 No faction: setting to Independent http://www.sabor.hr/lgs.axd?t=24&id=7068 http://www.sabor.hr/lgs.axd?t=24&id=7016 http://www.sabor.hr/lgs.axd?t=24&id=7307 http://www.sabor.hr/lgs.axd?t=24&id=7358 http://www.sabor.hr/lgs.axd?t=24&id=7090 http://www.sabor.hr/lgs.axd?t=24&id=7437 http://www.sabor.hr/lgs.axd?t=24&id=7319 http://www.sabor.hr/lgs.axd?t=24&id=7153 http://www.sabor.hr/lgs.axd?t=24&id=7354 http://www.sabor.hr/lgs.axd?t=24&id=7215 http://www.sabor.hr/lgs.axd?t=24&id=7401 http://www.sabor.hr/lgs.axd?t=24&id=7581 http://www.sabor.hr/lgs.axd?t=24&id=7078 http://www.sabor.hr/lgs.axd?t=24&id=7195 http://www.sabor.hr/lgs.axd?t=24&id=7024 http://www.sabor.hr/lgs.axd?t=24&id=7372 http://www.sabor.hr/lgs.axd?t=24&id=7426 http://www.sabor.hr/lgs.axd?t=24&id=7113 No faction: setting to Independent http://www.sabor.hr/lgs.axd?t=24&id=7061 http://www.sabor.hr/lgs.axd?t=24&id=6994 No faction: setting to Independent http://www.sabor.hr/lgs.axd?t=24&id=7351 http://www.sabor.hr/lgs.axd?t=24&id=7370 http://www.sabor.hr/lgs.axd?t=24&id=7566 No faction: setting to Independent http://www.sabor.hr/lgs.axd?t=24&id=7221 http://www.sabor.hr/lgs.axd?t=24&id=7360 http://www.sabor.hr/lgs.axd?t=24&id=7147 http://www.sabor.hr/lgs.axd?t=24&id=7018 http://www.sabor.hr/lgs.axd?t=24&id=7184 http://www.sabor.hr/lgs.axd?t=24&id=7045 http://www.sabor.hr/lgs.axd?t=24&id=7366 scraper.rb:39:in `scrape_mp': undefined method `text' for nil:NilClass (NoMethodError) from scraper.rb:29:in `block in scrape_list' from /app/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:187:in `block in each' from /app/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:in `upto' from /app/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:in `each' from scraper.rb:27:in `scrape_list' from scraper.rb:61:in `<main>'

Data

Downloaded 1 time by MikeRalphson

To download data sign in with GitHub

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

rows 10 / 325

id name sortname image birth_date faction faction_id party constituency start_date term source
6174
INGRID ANTIČEVIĆ MARINOVIĆ
Antičević Marinović, Ingrid
1957-10-04
Deputy Club of the Social Democratic Party
6556
SDP
9th
2015-12-28
8
6346
JOSIP LEKO
Leko, Josip
1948-09-19
Deputy Club of the Social Democratic Party
6556
SDP
2nd
2015-12-28
8
6412
DAVORIN MLAKAR
Mlakar, Davorin
1958-12-30
Deputy Club of the Croatian Democratic Union
6166
HDZ
1st
2015-12-28
8
6677
ANTE ŽUPAN
Župan, Ante
1948-05-26
Deputy Club of the Croatian Democratic Union
6166
HDZ
9th
2016-01-22
8
6172
LJUBICA AMBRUŠEC
Ambrušec, Ljubica
1965-02-03
Deputy Club of the Bridge of the Independent Lists
6649
MOST
2nd
2015-12-28
8
6182
IVAN ANUŠIĆ
Anušić, Ivan
1973-10-13
Deputy Club of the Croatian Democratic Union
6166
HDZ
4th
2015-12-28
8
6183
VEDRAN BABIĆ
Babić, Vedran
1976-12-10
Deputy Club of the Social Democratic Party
6556
SDP
2nd
2015-12-28
8
6184
BRANKO BAČIĆ
Bačić, Branko
1959-06-07
Deputy Club of the Croatian Democratic Union
6166
HDZ
10th
2015-12-28
8
6181
DRAŽEN BARIŠIĆ
Barišić, Dražen
1969-03-17
Deputy Club of the Croatian Democratic Union
6166
6th
2015-12-28
8
6188
MILORAD BATINIĆ
Batinić, Milorad
1957-09-07
Deputy Club of the Croatian People's Party - Liberal Democrats
6120
HNS
3rd
2015-12-28
8

Statistics

Average successful run time: 4 minutes

Total run time: 2 days

Total cpu time used: about 1 hour

Total disk space used: 117 KB

History

  • Auto ran revision 3c21a94f and failed .
    105 records added, 105 records removed in the database
    214 pages scraped
  • Auto ran revision 3c21a94f and completed successfully .
    151 records added, 151 records removed in the database
    303 pages scraped
  • Auto ran revision 3c21a94f and completed successfully .
    151 records added, 151 records removed in the database
    303 pages scraped
  • Auto ran revision 3c21a94f and completed successfully .
    151 records added, 151 records removed in the database
    303 pages scraped
  • Auto ran revision 3c21a94f and completed successfully .
    151 records added, 151 records removed in the database
    303 pages scraped
  • ...
  • Created on morph.io

Show complete history

Scraper code

Ruby

croatia-parliament / scraper.rb