tmtmtmtm / ghana-parliament

Scrapes github.com and www.parliament.gh

Build software better, together.


Contributors tmtmtmtm ondenman

The scraper is running. It was queued automatically .

Console output of last run

Injecting configuration and compiling...  -----> Ruby app detected -----> Compiling Ruby -----> Using Ruby version: ruby-2.0.0 -----> Installing dependencies using bundler 1.11.2  Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment  Warning: the running version of Bundler is older than the version that created the lockfile. 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/openaustralia/scraperwiki-ruby.git  Rubygems 2.0.14.1 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.  Installing public_suffix 2.0.4  Installing safe_yaml 1.0.4  Installing git 1.3.0  Installing hashdiff 0.3.0  Installing httpclient 2.8.2.4  Installing mini_portile2 2.1.0  Installing open-uri-cached 0.0.5  Installing vcr 3.0.3  Installing sqlite3 1.3.12 with native extensions  Using bundler 1.11.2  Installing addressable 2.5.0  Installing crack 0.4.3  Installing nokogiri 1.6.8.1 with native extensions  Installing sqlite_magic 0.0.6  Installing webmock 2.0.3  Using scraperwiki 3.0.1 from https://github.com/openaustralia/scraperwiki-ruby.git (at morph_defaults@fc50176)  Installing vcr-archive 0.3.0  Installing scraped_page_archive 0.5.0  Bundle complete! 4 Gemfile dependencies, 18 gems now installed.  Gems in the groups development and test were not installed.  Bundled gems are installed into ./vendor/bundle.  Post-install message from webmock:  WebMock 2.0 has some breaking changes. Please check the CHANGELOG: https://goo.gl/piDGLu  Bundle completed (18.40s)  Cleaning up the bundler cache.  Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.   -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running... Getting /parliamentarians/ Getting /parliamentarians/ Getting /parliamentarians/ Getting /parliamentarians/ Getting http://www.parliament.gh/parliamentarians/page/20 Getting http://www.parliament.gh/parliamentarians/page/20 Getting http://www.parliament.gh/parliamentarians/page/20 Getting http://www.parliament.gh/parliamentarians/page/40 Getting http://www.parliament.gh/parliamentarians/page/40 Getting http://www.parliament.gh/parliamentarians/page/40 Getting http://www.parliament.gh/parliamentarians/page/40 Getting http://www.parliament.gh/parliamentarians/page/60 Getting http://www.parliament.gh/parliamentarians/page/60 Getting http://www.parliament.gh/parliamentarians/page/60 Getting http://www.parliament.gh/parliamentarians/page/60 Getting http://www.parliament.gh/parliamentarians/page/80 Getting http://www.parliament.gh/parliamentarians/page/80 Getting http://www.parliament.gh/parliamentarians/page/80 Getting http://www.parliament.gh/parliamentarians/page/80 Getting http://www.parliament.gh/parliamentarians/page/100 Getting http://www.parliament.gh/parliamentarians/page/120 Getting http://www.parliament.gh/parliamentarians/page/100 Getting http://www.parliament.gh/parliamentarians/page/120 Getting http://www.parliament.gh/parliamentarians/page/100 Getting http://www.parliament.gh/parliamentarians/page/120 Getting http://www.parliament.gh/parliamentarians/page/100 Getting http://www.parliament.gh/parliamentarians/page/120

Data

Downloaded 779 times by everypolitician attigs Created4 paullenz

To download data sign in with GitHub

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

rows 10 / 275

id name image constituency party religion birth_date email term
336
Hon. Boakye Danquah Adu
Abuakwa North, Eastern
New Patriotic Party
Christianity
1965-07-02
6
177
Hon. John Gyetuah
Amenfi West, Western
National Democratic Congress
Christianity (Methodist)
1959-10-01
6
212
Hon. Joseph Osei-Owusu,
Bekwai, Ashanti
New Patriotic Party
Christianity (Catholic)
1962-01-22
6
337
Hon. Kwabena Bless John Oti
Nkwanta North, Volta Region
National Democratic Congress
Christianity
1979-10-19
6
392
Hon. Christian Corleytey Otuteye
Sege, Greater Accra
National Democratic Congress
Christian
1973-10-23
6
214
Hon. Kwabena Owusu-Aduomi
Ejisu, Ashanti
New Patriotic Party
Christianity (Deeper Life Church)
1960-09-17
6
216
Hon. Papa Owusu-Ankomah,
Sekondi, Western
New Patriotic Party
Christianity (Methodist)
1958-04-27
6
139
Hon. Benito Owusu-Bio
Atwima Nwabiagya North, Ashanti
New Patriotic Party
Christianity (Anglican)
1968-11-01
6
235
Hon. Yaw Owusu-Boateng
Asene/Akroso/Manso, Eastern
New Patriotic Party
Christianity (Methodist)
1955-07-24
6
397
Hon. Ursula G. Owusu-Ekuful (Mrs.)
Ablekuma West, Greater Accra
New Patriotic Party
Christian
1964-10-20
6

To download data sign in with GitHub

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

rows 1 / 1

id name source start_date
6
Sixth Parliament of the Fourth Republic
2013-01-07

Statistics

Average successful run time: about 3 hours

Total run time: 2 days

Total cpu time used: 1 day

Total disk space used: 13 MB

History

  • Auto ran revision ccf2dc80 and completed successfully .
    226 records added, 226 records removed in the database
    1211 pages scraped
  • Auto ran revision ccf2dc80 and completed successfully .
    274 records added, 274 records removed in the database
    1462 pages scraped
  • Auto ran revision ccf2dc80 and completed successfully .
    274 records added, 274 records removed in the database
    1462 pages scraped
  • Auto ran revision ccf2dc80 and completed successfully .
    274 records added, 274 records removed in the database
    1462 pages scraped
  • Auto ran revision ccf2dc80 and completed successfully .
    274 records added, 274 records removed in the database
    1462 pages scraped
  • Auto ran revision ccf2dc80 and completed successfully .
    274 records added, 274 records removed in the database
  • Manually ran revision ccf2dc80 and completed successfully .
    274 records added, 274 records removed in the database
  • Auto ran revision ccf2dc80 and failed .
    nothing changed in the database
  • Auto ran revision ccf2dc80 and completed successfully .
    nothing changed in the database
    1462 pages scraped
  • Auto ran revision ccf2dc80 and completed successfully .
    nothing changed in the database
    1462 pages scraped
  • Auto ran revision ccf2dc80 and completed successfully .
    102 records added, 102 records removed in the database
  • Auto ran revision ccf2dc80 and failed .
    nothing changed in the database
  • Manually ran revision ccf2dc80 and completed successfully .
    274 records added, 274 records removed in the database
    1461 pages scraped
  • Auto ran revision ccf2dc80 and failed .
    197 records added, 197 records removed in the database
    1048 pages scraped
  • Auto ran revision ccf2dc80 and completed successfully .
    274 records added, 274 records removed in the database
    1462 pages scraped
  • Auto ran revision ccf2dc80 and completed successfully .
    274 records added, 274 records removed in the database
    1462 pages scraped
  • Auto ran revision ccf2dc80 and failed .
    175 records added, 175 records removed in the database
    931 pages scraped
  • Auto ran revision ccf2dc80 and completed successfully .
    274 records added, 274 records removed in the database
    1460 pages scraped
  • Manually ran revision ccf2dc80 and completed successfully .
    274 records added, 271 records removed in the database
    1462 pages scraped
  • Manually ran revision 843e2017 and completed successfully .
    273 records added in the database
    364 pages scraped
  • Created on morph.io

Scraper code

Ruby

ghana-parliament / scraper.rb