richygit / vic_mp_data

Scrape VIC state MP data

Scrapes www.parliament.vic.gov.au

Parliament of Victoria


Contributors richygit

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.3.4 -----> 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 rake 10.4.2  Using bundler 1.15.2  Fetching unf_ext 0.0.7.1  Fetching httpclient 2.6.0.1  Installing rake 10.4.2  Installing httpclient 2.6.0.1  Installing unf_ext 0.0.7.1 with native extensions  Fetching mime-types 2.6.1  Fetching net-http-digest_auth 1.4  Installing net-http-digest_auth 1.4  Fetching net-http-persistent 2.9.4  Installing net-http-persistent 2.9.4  Fetching mini_portile 0.6.2  Installing mime-types 2.6.1  Installing mini_portile 0.6.2  Fetching ntlm-http 0.1.1  Installing ntlm-http 0.1.1  Fetching webrobots 0.1.1  Fetching sqlite3 1.3.10  Installing webrobots 0.1.1  Installing sqlite3 1.3.10 with native extensions  Fetching nokogiri 1.6.6.2  Installing nokogiri 1.6.6.2 with native extensions  Fetching unf 0.1.4  Installing unf 0.1.4  Fetching domain_name 0.5.24  Installing domain_name 0.5.24  Fetching http-cookie 1.0.2  Installing http-cookie 1.0.2  Fetching sqlite_magic 0.0.6  Installing sqlite_magic 0.0.6  Fetching scraperwiki 3.0.2  Installing scraperwiki 3.0.2  Fetching mechanize 2.7.3  Installing mechanize 2.7.3  Bundle complete! 12 Gemfile dependencies, 18 gems now installed.  Gems in the groups development and test were not installed.  Bundled gems are installed into ./vendor/bundle.  Bundle completed (25.75s)  Cleaning up the bundler cache. -----> Detecting rake tasks   ###### WARNING:  You have not declared a Ruby version in your Gemfile.  To set your Ruby version add this line to your Gemfile:  ruby '2.3.4'  # See https://devcenter.heroku.com/articles/ruby-versions for more information.   -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running... /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/open-uri.rb:225:in `open_loop': redirection forbidden: http://www.parliament.vic.gov.au/members/house/mla?format=csv -> https://www.parliament.vic.gov.au/members/house/mla?format=csv (RuntimeError) from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/open-uri.rb:151:in `open_uri' from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/open-uri.rb:717:in `open' from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/open-uri.rb:35:in `open' from /app/scraper_main.rb:28:in `scrape' from /app/scraper_main.rb:16:in `main' from scraper.rb:4:in `<main>'

Statistics

Average successful run time: 1 minute

Total run time: about 19 hours

Total cpu time used: 14 minutes

Total disk space used: 468 KB

History

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

Show complete history

Scraper code

Ruby

vic_mp_data / scraper.rb