everypolitician-scrapers / australia-positions

Scrapes query.wikidata.org

Wikidata Query Service (Beta)


Contributors tmtmtmtm

Last run completed successfully .

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 ast 2.4.0  Installing field_serializer 0.3.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 (30.05s)  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...

Data

Downloaded 1232 times by everypolitician

To download data sign in with GitHub

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

rows 10 / 391

id name position_id position label start_date end_date ordinal
Q314016
Andrew Fisher
q314016-21D5C1BF-E45B-4D8C-A38A-C212F6BF3F05
Q319145
Prime Minister of Australia
1908-11-13
1909-06-02
5
Q51330
John Howard
q51330-6FCE74BA-8B02-4E39-8B8D-1E36101570D1
Q319145
Prime Minister of Australia
1996-03-11
2007-12-03
25
Q269372
Bob Hawke
q269372-733DE9B5-6B8F-43FF-94C5-94A084565CA3
Q319145
Prime Minister of Australia
1983-03-11
1991-12-20
23
Q250087
Bill Hayden
Q250087-AE7837BF-F5AA-4890-8A74-DAE8628CE6FC
Q2390270
Treasurer of Australia
1975-06-06
1975-11-11
0
Q348577
Tony Abbott
q348577-74df9d79-4da7-c36f-f9bf-5e6bfc4684b8
Q319145
Prime Minister of Australia
2013-09-18
2015-09-15
28
Q23358
Stanley Bruce
Q23358-66DF1E60-6CAD-4698-9AD1-0AEC57B42927
Q2390270
Treasurer of Australia
1921-12-21
1923-02-08
0
Q214438
Robert Menzies
Q214438-fe602ac5-43d0-b83c-72fa-d52877ba7084
Q319145
Prime Minister of Australia
1939-04-26
1941-08-29
12
Q23342
Edmund Barton
q23342-3CBBC73A-407C-4A24-A98E-6B3CFB174ADC
Q319145
Prime Minister of Australia
1901-01-01
1903-09-24
1
Q23369
Arthur Fadden
q23369-EFDFDAEA-356A-4A90-BAC5-6EDC91843238
Q319145
Prime Minister of Australia
1941-08-29
1941-10-07
13
Q370966
Joseph Lyons
Q370966-98A7D9E4-3BFD-4495-9E02-47622C53ABA7
Q2390270
Treasurer of Australia
1932-01-06
1935-10-02
0

Statistics

Average successful run time: 2 minutes

Total run time: about 18 hours

Total cpu time used: about 2 hours

Total disk space used: 278 KB

History

  • Auto ran revision 97e64629 and completed successfully .
    277 records updated in the database
    1 page scraped
  • Auto ran revision 97e64629 and completed successfully .
    283 records updated in the database
    53 pages scraped
  • Auto ran revision 97e64629 and completed successfully .
    288 records updated in the database
    1 page scraped
  • Auto ran revision 97e64629 and completed successfully .
    255 records updated in the database
  • Auto ran revision 97e64629 and completed successfully .
    195 records updated in the database
  • ...
  • Created on morph.io

Show complete history

Scraper code

Ruby

australia-positions / scraper.rb