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.3.3 -----> 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.0). 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 coderay 1.1.2  Installing ast 2.4.0  Fetching colorize 0.8.1  Fetching concurrent-ruby 1.0.5  Installing activesupport-inflector 0.1.0  Fetching diskcached 1.1.3  Installing diskcached 1.1.3  Fetching unf_ext 0.0.7.5  Installing unf_ext 0.0.7.5 with native extensions  Installing colorize 0.8.1  Fetching require_all 2.0.0  Installing concurrent-ruby 1.0.5  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.5.7  Installing hashie 3.5.7  Fetching httpclient 2.8.3  Fetching json 2.1.0  Installing httpclient 2.8.3  Installing json 2.1.0 with native extensions  Fetching method_source 0.9.0  Installing method_source 0.9.0  Fetching mime-types-data 3.2016.0521  Installing mime-types-data 3.2016.0521  Fetching mini_portile2 2.3.0  Installing mini_portile2 2.3.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.12.1  Installing parallel 1.12.1  Fetching powerpack 0.1.1  Installing powerpack 0.1.1  Fetching rainbow 3.0.0  Installing rainbow 3.0.0  Fetching ruby-progressbar 1.9.0  Installing ruby-progressbar 1.9.0  Fetching unicode-display_width 1.3.2  Installing unicode-display_width 1.3.2  Fetching sqlite3 1.3.13  Installing sqlite3 1.3.13 with native extensions  Fetching yajl-ruby 1.3.1  Installing yajl-ruby 1.3.1 with native extensions  Fetching parser 2.5.1.0  Installing parser 2.5.1.0  Fetching everypolitician-popolo 0.8.0  Installing everypolitician-popolo 0.8.0  Fetching i18n 1.0.1  Installing i18n 1.0.1  Fetching faraday 0.15.0  Installing faraday 0.15.0  Fetching pry 0.11.3  Installing pry 0.11.3  Fetching mime-types 3.1  Installing mime-types 3.1  Fetching nokogiri 1.8.2  Installing nokogiri 1.8.2 with native extensions  Fetching unf 0.1.4  Installing unf 0.1.4  Using sqlite_magic 0.0.6 from https://github.com/openc/sqlite_magic.git (at master@4df975e)  Fetching rubocop 0.55.0  Using everypolitician 0.20.0 from https://github.com/everypolitician/everypolitician-ruby.git (at master@363f7ab)  Fetching faraday_middleware 0.12.2  Using wikisnakker 0.9.1 from https://github.com/everypolitician/wikisnakker.git (at master@72dbb8b)  Fetching domain_name 0.5.20180417  Installing faraday_middleware 0.12.2  Installing rubocop 0.55.0  Using scraperwiki 3.0.1 from https://github.com/openaustralia/scraperwiki-ruby.git (at morph_defaults@fc50176)  Fetching wikidata-client 0.0.12  Installing domain_name 0.5.20180417  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 wikidata-client 0.0.12  Installing rest-client 2.0.2  Fetching mediawiki_api 0.7.1  Installing mediawiki_api 0.7.1  Using wikidata-fetcher 0.21.0 from https://github.com/everypolitician/wikidata-fetcher.git (at master@f6a205f)  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.  Bundle completed (36.81s)  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.0). 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 ?item ?itemLabel ?start_date ?end_date ?hasRoleLabel ?constituency ?constituencyLabel ?party ?partyLabel ?partyShortname ?term ?termLabel ?termOrdinal ?scraperName WHERE { (RuntimeError) ?item p:P39 ?statement. ?statement ps:P39 wd:Q33512801; pq:P2937 wd:Q29068722 . OPTIONAL { ?statement pq:P580 ?start_date. } OPTIONAL { ?statement pq:P582 ?end_date. } OPTIONAL { ?statement pq:P768 ?constituency. } OPTIONAL { ?statement pq:P4100 ?party . OPTIONAL { ?party wdt:P1813 ?partyShortname . } } OPTIONAL { ?statement pq:P2868 ?hasRole. } OPTIONAL { ?statement pq:P2937 ?term . OPTIONAL { ?term p:P31/pq:P1545 ?termOrdinal . } } OPTIONAL { ?item p:P973 ?described . ?described ps:P973 ?url . ?described pq:P1810 ?scraperName . FILTER(CONTAINS(LCASE(STR(?url)), "www.na.gov.pk/")) } SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } FILTER(!BOUND(?end_date) || ?end_date > NOW()) FILTER (LANG(?partyShortname) = 'en') } failed: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed from scraper.rb:13:in `sparql' from scraper.rb:51:in `<main>'

Data

Downloaded 22 times by everypolitician-scrapers everypolitician

To download data sign in with GitHub

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

rows 10 / 325

id name start_date end_date legislative_membership_type constituency constituency_id party party_id term
Q18815883
Sheikh Fayyaz Ud Din
2013-06-01
NA-193 (Rahim Yar Khan-II)
NA-193
PML(N)
pmln
14
Q18816088
Nawabzada Mazher Ali
2013-06-01
NA-104 (Gujrat-I)
NA-104
PML(N)
pmln
14
Q18763830
Asghar Ali Shah
2013-06-01
NA-212 (Naushero Feroze-II)
NA-212
PPP
ppp
14
Q18815902
Mian Riaz Hussain Peerzada
2013-06-01
NA-186 (Bahawalpur-IV)
NA-186
PML(N)
pmln
14
Q18815943
Tahir Iqbal Ch
2013-06-01
NA-169 (Vehari-III)
NA-169
PML(N)
pmln
14
Q18763946
Chaudhry Khadim Hussain
2013-06-01
NA-62 (Jhelum-I)
NA-62
PML(N)
pmln
14
Q18816028
Rana Afzaal Hussain
2013-06-01
NA-131 (Sheikhupura-I)
NA-131
PML(N)
pmln
14
Q18763862
Begum Majeeda Wyne
2013-06-01
reserved seat for Women
Q33513293
PML(N)
pmln
14
Q18815911
Makhdoomzada Basit Bokhari
2013-06-01
NA-179 (Muzaffargarh-IV)
NA-179
PML(N)
pmln
14
Q18816012
Rasheed Ahmad Khan
2013-06-01
NA-140 (Kasur-III)
NA-140
PML(N)
pmln
14

Statistics

Average successful run time: 1 minute

Total run time: 1 day

Total cpu time used: 36 minutes

Total disk space used: 100 KB

History

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

Show complete history