Contributors jacksonj04 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 dependency metadata from https://rubygems.org/.  Fetching https://github.com/everypolitician/everypolitician-ruby.git  Fetching https://github.com/openc/sqlite_magic.git  Fetching https://github.com/openaustralia/scraperwiki-ruby.git  Fetching https://github.com/everypolitician/wikisnakker.git  Fetching https://github.com/everypolitician/wikidata-fetcher.git  Fetching activesupport-inflector 0.1.0  Fetching ast 2.4.0  Using bundler 1.15.2  Fetching coderay 1.1.2  Installing activesupport-inflector 0.1.0  Installing ast 2.4.0  Installing coderay 1.1.2  Fetching colorize 0.8.1  Fetching concurrent-ruby 1.1.4  Installing colorize 0.8.1  Fetching unf_ext 0.0.7.5  Installing concurrent-ruby 1.1.4  Fetching require_all 2.0.0  Installing unf_ext 0.0.7.5 with native extensions  Installing require_all 2.0.0  Fetching excon 0.62.0  Installing excon 0.62.0  Fetching multipart-post 2.0.0  Installing multipart-post 2.0.0  Fetching hashie 3.6.0  Installing hashie 3.6.0  Fetching httpclient 2.8.3  Fetching jaro_winkler 1.5.2  Installing httpclient 2.8.3  Installing jaro_winkler 1.5.2 with native extensions  Fetching json 2.1.0  Installing json 2.1.0 with native extensions  Fetching method_source 0.9.2  Installing method_source 0.9.2  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 open-uri-cached 0.0.5  Installing open-uri-cached 0.0.5  Fetching parallel 1.13.0  Installing parallel 1.13.0  Fetching powerpack 0.1.2  Installing powerpack 0.1.2  Fetching rainbow 3.0.0  Installing rainbow 3.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 yajl-ruby 1.4.1  Installing yajl-ruby 1.4.1 with native extensions  Fetching parser 2.6.0.0  Installing parser 2.6.0.0  Fetching everypolitician-popolo 0.9.0  Installing everypolitician-popolo 0.9.0  Fetching i18n 1.5.3  Installing i18n 1.5.3  Fetching faraday 0.15.4  Installing faraday 0.15.4  Fetching unf 0.1.4  Installing unf 0.1.4  Fetching pry 0.12.2  Installing pry 0.12.2  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  Using sqlite_magic 0.0.6 from https://github.com/openc/sqlite_magic.git (at master@4df975e)  Fetching rubocop 0.63.1  Using everypolitician 0.20.0 from https://github.com/everypolitician/everypolitician-ruby.git (at master@f85e4b6)  Installing rubocop 0.63.1  Fetching faraday_middleware 0.13.1  Fetching domain_name 0.5.20180417  Installing faraday_middleware 0.13.1  Installing domain_name 0.5.20180417  Using wikisnakker 0.9.1 from https://github.com/everypolitician/wikisnakker.git (at master@72dbb8b)  Using scraperwiki 3.0.1 from https://github.com/openaustralia/scraperwiki-ruby.git (at morph_defaults@fc50176)  Fetching wikidata-client 0.0.12  Fetching http-cookie 1.0.3  Installing http-cookie 1.0.3  Fetching faraday-cookie_jar 0.0.6  Installing faraday-cookie_jar 0.0.6  Fetching rest-client 2.0.2  Installing rest-client 2.0.2  Installing wikidata-client 0.0.12  Fetching mediawiki_api 0.7.1  Installing mediawiki_api 0.7.1  Using wikidata-fetcher 0.24.0 from https://github.com/everypolitician/wikidata-fetcher.git (at master@c4c6f01)  Bundle complete! 14 Gemfile dependencies, 47 gems now installed.  Gems in the groups development and test were not installed.  Bundled gems are installed into ./vendor/bundle.  Post-install message from i18n:  HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.  But that may break your application.  Please check your Rails app for 'config.i18n.fallbacks = true'.  If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be  'config.i18n.fallbacks = [I18n.default_locale]'.  If not, fallbacks will be broken in your app by I18n 1.1.x.  For more info see:  https://github.com/svenfuchs/i18n/releases/tag/v1.1.0  Bundle completed (33.32s)  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... scraper.rb:16:in `rescue in sparql': Wikidata query SELECT DISTINCT ?statement ?item ?itemLabel ?start_date ?end_date ?constituency ?constituencyLabel ?party ?partyLabel ?term ?termLabel ?termOrdinal ?paName WHERE { (RuntimeError) ?item p:P39 ?statement. VALUES ?terms { wd:Q18109299 wd:Q64022207 } ?statement ps:P39 wd:Q16744266; pq:P2937 ?terms . OPTIONAL { ?statement pq:P580 ?start_date. } OPTIONAL { ?statement pq:P582 ?end_date. } OPTIONAL { ?statement pq:P768 ?constituency. } OPTIONAL { ?statement pq:P4100 ?party. } OPTIONAL { ?statement pq:P2937 ?term . OPTIONAL { ?term p:P31/pq:P1545 ?termOrdinal . } } OPTIONAL { ?item p:P973 ?described . ?described ps:P973 ?url . ?described pq:P1810 ?paName . FILTER(CONTAINS(LCASE(STR(?url)), "pa.org.za/")) } SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } failed: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed from scraper.rb:12:in `sparql' from scraper.rb:46:in `<main>'

Data

Downloaded 1340 times by everypolitician everypolitician-scrapers jacksonj04

To download data sign in with GitHub

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

rows 10 / 901

statement id name start_date end_date constituency constituency_id party party_id term
Q16744297-BA362195-7BE7-4669-9C62-43B9331F1F81
Q16744297
Pam Tshwete
2019-05-22
African National Congress
Q83162
27
Q16746651-AC84F04E-9625-4E0D-88C0-948D6673B0C4
Q16746651
Mary-Ann Lindelwa Dunjwa
2019-05-22
Eastern Cape
Q130840
African National Congress
Q83162
27
Q16744469-0088DAB1-4202-47CB-804D-54E219DA44E3
Q16744469
Désirée Van Der Walt
2019-05-22
Limpopo
Q134907
Democratic Alliance
Q761877
27
Q16746657-8279531B-0657-4508-B379-7D6F4A702975
Q16746657
Nomalungelo Gina
2019-05-22
KwaZulu-Natal
Q81725
African National Congress
Q83162
27
Q16744856-E73C4838-B5F6-4A23-9E9E-7927687B6EFC
Q16744856
Steve Swart
2019-05-22
African Christian Democratic Party
Q268613
27
Q16744320-E9CF910B-279B-43DB-B765-6B71F960A36E
Q16744320
Maggie Sotyu
2019-05-22
African National Congress
Q83162
27
Q16744307-9872B90F-5175-48E5-9040-96F446C82EF9
Q16744307
Nthabiseng Pauline Khunou
2014-05-21
2019-05-07
Free State
Q160284
African National Congress
Q83162
26
Q16744325-2E66A411-E218-43A3-A353-B50F425728A2
Q16744325
Henrietta Bogopane-Zulu
2019-05-22
African National Congress
Q83162
27
Q16744393-A9364CA4-72C7-4411-9A70-5B61B6DDD6CF
Q16744393
Ndabakayise Erasmus Gcwabaza
2014-05-21
2019-05-07
KwaZulu-Natal
Q81725
African National Congress
Q83162
26
Q16193273-937C29F2-4455-470A-8AE2-9545D727D001
Q16193273
Thulas Nxesi
2019-05-22
African National Congress
Q83162
27

Statistics

Average successful run time: 2 minutes

Total run time: 2 days

Total cpu time used: 41 minutes

Total disk space used: 362 KB

History

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

Show complete history