everypolitician-scrapers / mexico-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 jaro_winkler 1.5.2 with native extensions  Installing unf_ext 0.0.7.5 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 (28.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.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 918 times by everypolitician tmtmtmtm

To download data sign in with GitHub

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

rows 10 / 14

id name position_id position label start_date end_date ordinal
Q5379858
Enrique de la Madrid Cordero
Q5379858-62961CE1-2A54-4BFF-98D9-055B8C2BC0E5
Q28973023
Secretary of Tourism
0
Q11689894
Luis Videgaray Caso
Q11689894-c93cd0e6-4613-6682-26eb-c67a6c1cefda
Q7444306
Secretary of Foreign Affairs
2017-01-04
0
Q57269
Felipe Calderón
Q57269-C1A8BFB4-4978-4A0D-BB95-FDC002FC0573
Q28973041
Secretary of Energy
0
Q5652484
Javier Usabiaga Arroyo
Q5652484-7f271c05-43b2-9bb6-41e3-c8343b2fd378
Q57077943
Secretary of Agriculture
2000-12-01
2005-09-28
0
Q2339245
Rodolfo Elizondo Torres
Q2339245-32a5cc97-46c9-8ac8-28a4-586094ab12f4
Q28973023
Secretary of Tourism
0
Q3069445
Fernando Canales Clariond
Q3069445-57DE88F7-FB20-42EA-BC7E-A1FCEBEEA923
Q28973041
Secretary of Energy
0
Q3544169
Guillermo Prieto
Q3544169-e3cb736c-46a3-1d70-1874-49b08be43d1d
Q52412845
Secretary of Finance and Public Credit
1861-01-20
1861-04-05
0
Q5771792
Claudia Ruiz Massieu
Q5771792-db6b4e85-4330-c435-050f-f4d31ba01fa0
Q7444306
Secretary of Foreign Affairs
2015-08-27
2017-01-04
0
Q316210
Sebastián Lerdo de Tejada
Q316210-64E6DF85-0867-43A3-87AB-F6F80D11B843
Q7444306
Secretary of Foreign Affairs
0
Q5771792
Claudia Ruiz Massieu
Q5771792-032377f0-4467-46de-4173-14598aeb9256
Q28973023
Secretary of Tourism
2012-12-01
2015-08-27
0

Statistics

Average successful run time: less than a minute

Total run time: about 8 hours

Total cpu time used: about 1 hour

Total disk space used: 131 KB

History

  • Auto ran revision 7bad2a4b and completed successfully .
    nothing changed in the database
    1 page scraped
  • Auto ran revision 7bad2a4b and completed successfully .
    nothing changed in the database
  • Auto ran revision 7bad2a4b and completed successfully .
    nothing changed in the database
    6 pages scraped
  • Auto ran revision 7bad2a4b and completed successfully .
    nothing changed in the database
    2 pages scraped
  • Auto ran revision 7bad2a4b and completed successfully .
    3 records updated in the database
    1 page scraped
  • ...
  • Created on morph.io

Show complete history

Scraper code

Ruby

mexico-positions / scraper.rb