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.4.4 -----> Installing dependencies using bundler 1.15.2  Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment  Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.5). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.  Fetching gem metadata from https://rubygems.org/........  Fetching version metadata from https://rubygems.org/.  Fetching https://github.com/everypolitician/scraped.git  Fetching https://github.com/openc/sqlite_magic.git  Fetching https://github.com/openaustralia/scraperwiki-ruby.git  Fetching ast 2.4.0  Using bundler 1.15.2  Fetching unf_ext 0.0.7.5  Fetching field_serializer 0.3.0  Installing field_serializer 0.3.0  Installing ast 2.4.0  Fetching httpclient 2.8.3  Fetching jaro_winkler 1.5.2  Installing unf_ext 0.0.7.5 with native extensions  Installing jaro_winkler 1.5.2 with native extensions  Installing httpclient 2.8.3  Fetching mime-types-data 3.2018.0812  Installing mime-types-data 3.2018.0812  Fetching mini_portile2 2.4.0  Installing mini_portile2 2.4.0  Fetching netrc 0.11.0  Installing netrc 0.11.0  Fetching parallel 1.14.0  Installing parallel 1.14.0  Fetching powerpack 0.1.2  Installing powerpack 0.1.2  Fetching psych 3.1.0  Installing psych 3.1.0 with native extensions  Fetching rainbow 3.0.0  Installing rainbow 3.0.0  Fetching require_all 2.0.0  Installing require_all 2.0.0  Fetching ruby-progressbar 1.10.0  Installing ruby-progressbar 1.10.0  Fetching unicode-display_width 1.4.1  Installing unicode-display_width 1.4.1  Fetching sqlite3 1.4.0  Installing sqlite3 1.4.0 with native extensions  Fetching parser 2.6.0.0  Installing parser 2.6.0.0  Fetching mime-types 3.2.2  Installing mime-types 3.2.2  Fetching nokogiri 1.10.1  Installing nokogiri 1.10.1 with native extensions  Fetching unf 0.1.4  Installing unf 0.1.4  Fetching rubocop 0.65.0  Installing rubocop 0.65.0  Fetching domain_name 0.5.20180417  Installing domain_name 0.5.20180417  Fetching http-cookie 1.0.3  Installing http-cookie 1.0.3  Fetching rest-client 2.0.2  Installing rest-client 2.0.2  Using sqlite_magic 0.0.6 from https://github.com/openc/sqlite_magic.git (at master@4df975e)  Using scraperwiki 3.0.1 from https://github.com/openaustralia/scraperwiki-ruby.git (at morph_defaults@fc50176)  Using scraped 0.6.2 from https://github.com/everypolitician/scraped.git (at scraper-class@ecb23ad)  Bundle complete! 6 Gemfile dependencies, 28 gems now installed.  Gems in the groups development and test were not installed.  Bundled gems are installed into ./vendor/bundle.  Bundle completed (31.20s)  Cleaning up the bundler cache.  Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.5). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. -----> Detecting rake tasks   -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running... /app/vendor/ruby-2.4.4/lib/ruby/2.4.0/open-uri.rb:363:in `open_http': 403 Please identify your user agent, see https://meta.wikimedia.org/wiki/User-Agent_policy (OpenURI::HTTPError) from /app/vendor/ruby-2.4.4/lib/ruby/2.4.0/open-uri.rb:741:in `buffer_open' from /app/vendor/ruby-2.4.4/lib/ruby/2.4.0/open-uri.rb:212:in `block in open_loop' from /app/vendor/ruby-2.4.4/lib/ruby/2.4.0/open-uri.rb:210:in `catch' from /app/vendor/ruby-2.4.4/lib/ruby/2.4.0/open-uri.rb:210:in `open_loop' from /app/vendor/ruby-2.4.4/lib/ruby/2.4.0/open-uri.rb:151:in `open_uri' from /app/vendor/ruby-2.4.4/lib/ruby/2.4.0/open-uri.rb:721:in `open' from /app/vendor/ruby-2.4.4/lib/ruby/2.4.0/open-uri.rb:35:in `open' from /app/vendor/bundle/ruby/2.4.0/bundler/gems/scraped-ecb23adeca95/lib/scraped/request/strategy/live_request.rb:10:in `response' from /app/vendor/bundle/ruby/2.4.0/bundler/gems/scraped-ecb23adeca95/lib/scraped/request.rb:29:in `block in first_successful_response' from /app/vendor/bundle/ruby/2.4.0/bundler/gems/scraped-ecb23adeca95/lib/scraped/request.rb:30:in `each' from /app/vendor/bundle/ruby/2.4.0/bundler/gems/scraped-ecb23adeca95/lib/scraped/request.rb:30:in `each' from /app/vendor/bundle/ruby/2.4.0/bundler/gems/scraped-ecb23adeca95/lib/scraped/request.rb:30:in `each' from /app/vendor/bundle/ruby/2.4.0/bundler/gems/scraped-ecb23adeca95/lib/scraped/request.rb:30:in `each' from /app/vendor/bundle/ruby/2.4.0/bundler/gems/scraped-ecb23adeca95/lib/scraped/request.rb:30:in `first' from /app/vendor/bundle/ruby/2.4.0/bundler/gems/scraped-ecb23adeca95/lib/scraped/request.rb:30:in `first_successful_response' from /app/vendor/bundle/ruby/2.4.0/bundler/gems/scraped-ecb23adeca95/lib/scraped/request.rb:13:in `response' from /app/vendor/bundle/ruby/2.4.0/bundler/gems/scraped-ecb23adeca95/lib/scraped/scraper.rb:15:in `scraper' from /app/vendor/bundle/ruby/2.4.0/bundler/gems/scraped-ecb23adeca95/lib/scraped/scraper.rb:8:in `store' from scraper.rb:8:in `<main>'

Data

Downloaded 1486 times by everypolitician

To download data sign in with GitHub

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

rows 10 / 63

id name position_id position label start_date end_date ordinal
Q156781
Mário Soares
Q156781-4797dc92-4842-6d65-4f73-57d0bfec11d7
Q1937160
minister without portfolio
1975
1975
0
Q250919
Álvaro Cunhal
Q250919-B2B360CA-A16F-458A-BD92-9D7DC2008019
Q1937160
minister without portfolio
1974-05-16
1975-08-08
0
Q23799289
Tiago Brandão Rodrigues
Q23799289-85d41c20-4c3d-47e6-b21f-4f343e242a9b
Q30121475
Minister of Education
2015-11-26
0
Q438868
Diogo de Freitas do Amaral
Q438868-70d990b3-46b2-2fbb-9e69-0200e63b8825
Q4294919
Minister of Foreign Affairs
1980-01-10
1981-01-12
0
Q311440
António Guterres
Q311440-59FF5DB4-2328-4D06-8CA2-A2249E1246D3
Q1723031
Prime Minister of Portugal
1995-10-28
2002-04-06
114
Q10389774
José Vera Jardim
Q10389774-3047B52D-9A90-45E5-B2BD-7D870C333047
Q43186489
Minister of Justice
1995-10-28
1999-10-25
0
Q438868
Diogo de Freitas do Amaral
Q438868-5E4388CB-5065-4688-8D32-FAA73A07CA73
Q4294919
Minister of Foreign Affairs
2005-03-12
2006-07-03
0
Q381029
Francisco Pinto Balsemão
Q381029-2d18c43b-470a-6763-a42d-0e3ecba36108
Q1723031
Prime Minister of Portugal
1981-01-09
1983-06-09
111
Q10395809
Álvaro José Brilhante Laborinho Lúcio
Q10395809-135c4db5-4e4e-bc62-4bbd-220ad62a528c
Q43186489
Minister of Justice
1991-10-31
1995-10-28
0
Q610788
António Costa
Q610788-e9c5c9a3-465b-4f6e-b448-51a76cd55853
Q56872893
Minister of Parliamentary Affairs
1997-11-25
1999-10-25
0

Statistics

Average successful run time: half a minute

Total run time: about 8 hours

Total cpu time used: 37 minutes

Total disk space used: 81.3 KB

History

  • Auto ran revision 46f6a879 and failed .
    nothing changed in the database
  • Auto ran revision 46f6a879 and failed .
    nothing changed in the database
  • Auto ran revision 46f6a879 and failed .
    nothing changed in the database
  • Auto ran revision 46f6a879 and failed .
    nothing changed in the database
  • Auto ran revision 46f6a879 and failed .
    nothing changed in the database
  • ...
  • Created on morph.io

Show complete history

Scraper code

Ruby

portugal-positions / scraper.rb