This is a scraper that runs on Morph. To get started see the documentation

Contributors tmtmtmtm octopusinvitro ondenman

Last run failed with status code 1.

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... /app/vendor/ruby-2.3.3/lib/ruby/2.3.0/open-uri.rb:225:in `open_loop': redirection forbidden: http://www.parliament.gov.sg/history/1st-parliament -> https://www.parliament.gov.sg/history/1st-parliament (RuntimeError) from /app/vendor/ruby-2.3.3/lib/ruby/2.3.0/open-uri.rb:151:in `open_uri' from /app/vendor/bundle/ruby/2.3.0/gems/open-uri-cached-0.0.5/lib/open-uri/cached.rb:10:in `open_uri' from /app/vendor/ruby-2.3.3/lib/ruby/2.3.0/open-uri.rb:717:in `open' from /app/vendor/ruby-2.3.3/lib/ruby/2.3.0/open-uri.rb:35:in `open' from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-58c88c135f96/lib/scraped/request/strategy/live_request.rb:10:in `response' from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-58c88c135f96/lib/scraped/request.rb:29:in `block in first_successful_response' from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-58c88c135f96/lib/scraped/request.rb:30:in `each' from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-58c88c135f96/lib/scraped/request.rb:30:in `each' from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-58c88c135f96/lib/scraped/request.rb:30:in `each' from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-58c88c135f96/lib/scraped/request.rb:30:in `each' from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-58c88c135f96/lib/scraped/request.rb:30:in `each' from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-58c88c135f96/lib/scraped/request.rb:30:in `each' from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-58c88c135f96/lib/scraped/request.rb:30:in `first' from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-58c88c135f96/lib/scraped/request.rb:30:in `first_successful_response' from /app/vendor/bundle/ruby/2.3.0/bundler/gems/scraped-58c88c135f96/lib/scraped/request.rb:13:in `response' from scraper.rb:120:in `scraper' from scraper.rb:134:in `<main>'

Data

Downloaded 1190 times by everypolitician octopusinvitro MikeRalphson davewhiteland tmtmtmtm

To download data sign in with GitHub

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

rows 10 / 13

id name source start_date end_date
1
1st Parliament
1965-12-08
1968-02-08
2
2nd Parliament
1968-05-06
1972-08-16
3
3rd Parliament
1972-10-12
1976-12-06
4
4th Parliament
1977-02-07
1980-12-04
5
5th Parliament
1981-02-03
1984-12-03
6
6th Parliament
1985-02-25
1988-08-16
7
7th Parliament
1989-01-09
1991-08-13
8
8th Parliament
1992-01-06
1996-12-15
9
9th Parliament
1997-05-26
2001-10-17
10
10th Parliament
2002-03-25
2006-04-19

Statistics

Average successful run time: 2 minutes

Total run time: 1 day

Total cpu time used: about 2 hours

Total disk space used: 5.04 MB

History

  • Auto ran revision d3f70154 and failed .
    nothing changed in the database
    13 pages scraped
  • Auto ran revision d3f70154 and failed .
    nothing changed in the database
  • Auto ran revision d3f70154 and failed .
    nothing changed in the database
    3 pages scraped
  • Auto ran revision d3f70154 and failed .
    nothing changed in the database
    1 page scraped
  • Auto ran revision d3f70154 and failed .
    nothing changed in the database
    1 page scraped
  • ...
  • Created on morph.io

Show complete history

Scraper code

Ruby

singapore-parliament / scraper.rb