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

Contributors tmtmtmtm chrismytton

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 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 unf_ext 0.0.7.1  Installing unf_ext 0.0.7.1 with native extensions  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 mime-types 2.6.1  Installing mime-types 2.6.1  Fetching mini_portile 0.6.2  Installing mini_portile 0.6.2  Fetching netrc 0.10.3  Installing netrc 0.10.3  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 unf 0.1.4  Installing unf 0.1.4  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 domain_name 0.5.24  Installing domain_name 0.5.24  Using scraperwiki 3.0.1 from https://github.com/openaustralia/scraperwiki-ruby.git (at morph_defaults@fc50176)  Fetching http-cookie 1.0.2  Installing http-cookie 1.0.2  Fetching rest-client 1.8.0  Installing rest-client 1.8.0  Bundle complete! 6 Gemfile dependencies, 20 gems now installed.  Gems in the groups development and test were not installed.  Bundled gems are installed into ./vendor/bundle.  Bundle completed (25.70s)  Cleaning up the bundler cache. -----> Detecting rake tasks   -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running... /app/vendor/bundle/ruby/2.0.0/gems/rest-client-1.8.0/lib/restclient/abstract_response.rb:74:in `return!': 503 Service Unavailable (RestClient::ServiceUnavailable) from /app/vendor/bundle/ruby/2.0.0/gems/rest-client-1.8.0/lib/restclient/request.rb:495:in `process_result' from /app/vendor/bundle/ruby/2.0.0/gems/rest-client-1.8.0/lib/restclient/request.rb:421:in `block in transmit' from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/net/http.rb:852:in `start' from /app/vendor/bundle/ruby/2.0.0/gems/rest-client-1.8.0/lib/restclient/request.rb:413:in `transmit' from /app/vendor/bundle/ruby/2.0.0/gems/rest-client-1.8.0/lib/restclient/request.rb:176:in `execute' from /app/vendor/bundle/ruby/2.0.0/gems/rest-client-1.8.0/lib/restclient/request.rb:41:in `execute' from /app/vendor/bundle/ruby/2.0.0/gems/rest-client-1.8.0/lib/restclient.rb:65:in `get' from scraper.rb:14:in `noko_q' from scraper.rb:37:in `<main>'

Data

Downloaded 1311 times by everypolitician MikeRalphson

To download data sign in with GitHub

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

rows 1 / 1

id identifier__parldata name start_date end_date
25
550a7f50273a3965683bd824
Skupština Crne Gore 2012 - 2015
2012
2015

To download data sign in with GitHub

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

rows 10 / 82

id identifier__skupstina birth_date name image source term party party_id start_date end_date
550a7f50273a3965683bd826
148
Ljerka Dragičević
25
Hrvatska građanska inicijativa
hrvatska-gradanska-inicijativa
2012
2015
550a7f52273a3965683bd82a
249
Nik Gjeloshaj
25
Demokratska partija
demokratska-partija
2012
2015
550a7f52273a3965683bd82e
145
Genci Nimanbegu
25
Forca
forca
2012
2015
550a7f53273a3965683bd832
105
1973-10-08
Suljo Mustafić
25
Bošnjačka stranka
bosnjacka-stranka
2012
2015
550a7f54273a3965683bd836
265
Mr Rešad Sijarić
25
Bošnjačka stranka
bosnjacka-stranka
2012
2015
550a7f55273a3965683bd83a
102
1975-02-17
Almer Kalač
25
Bošnjačka stranka
bosnjacka-stranka
2012
2015
550a7f56273a3965683bd83e
103
1965-11-29
Zoran Miljanić
25
Klub samostalnih poslanika
klub-samostalnih-poslanika
2012
2015
550a7f57273a3965683bd842
101
Goran Tuponja
25
Pozitivna Crna Gora
pozitivna-crna-gora
2012
2015
550a7f58273a3965683bd846
100
1985-12-25
mr Dritan Abazović
25
Klub samostalnih poslanika
klub-samostalnih-poslanika
2012
2015
550a7f59273a3965683bd84a
99
1976-06-11
Srđan Perić
25
Pozitivna Crna Gora
pozitivna-crna-gora
2012
2015

Statistics

Average successful run time: 2 minutes

Total run time: 4 days

Total cpu time used: 24 minutes

Total disk space used: 78.9 KB

History

  • Auto ran revision db042ae7 and failed .
    nothing changed in the database
    1 page scraped
  • Auto ran revision db042ae7 and failed .
    nothing changed in the database
    1 page scraped
  • Auto ran revision db042ae7 and failed .
    nothing changed in the database
    1 page scraped
  • Auto ran revision db042ae7 and failed .
    nothing changed in the database
    1 page scraped
  • Auto ran revision db042ae7 and failed .
    nothing changed in the database
    1 page scraped
  • ...
  • Created on morph.io

Show complete history

Scraper code

Ruby

montenegro-parldata / scraper.rb