everypolitician-scrapers / twitter-ireland-list

Wee scraper pulling twitter handles of Irish TDs from Elaine Byrne's list

Scrapes api.twitter.com


Irish politicians twitter scraper

This wee scraper runs through a twitter List of Irish politicians (from Elaine Byrne's excellent public list) for the EveryPolitician project.

Intended to run on morph.io.

Contributors davewhiteland

Last run failed with status code 1.

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... /app/vendor/bundle/ruby/2.3.0/gems/twitter-5.16.0/lib/twitter/rest/response/raise_error.rb:15:in `on_complete': Invalid or expired token. (Twitter::Error::Unauthorized) from /app/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/response.rb:9:in `block in call' from /app/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/response.rb:57:in `on_complete' from /app/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/response.rb:8:in `call' from /app/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/request/url_encoded.rb:15:in `call' from /app/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/request/multipart.rb:14:in `call' from /app/vendor/bundle/ruby/2.3.0/gems/twitter-5.16.0/lib/twitter/rest/request/multipart_with_file.rb:19:in `call' from /app/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:139:in `build_response' from /app/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/connection.rb:377:in `run_request' from /app/vendor/bundle/ruby/2.3.0/gems/faraday-0.9.2/lib/faraday/connection.rb:140:in `get' from /app/vendor/bundle/ruby/2.3.0/gems/twitter-5.16.0/lib/twitter/rest/request.rb:33:in `perform' from /app/vendor/bundle/ruby/2.3.0/gems/twitter-5.16.0/lib/twitter/cursor.rb:29:in `initialize' from /app/vendor/bundle/ruby/2.3.0/gems/twitter-5.16.0/lib/twitter/rest/utils.rb:107:in `new' from /app/vendor/bundle/ruby/2.3.0/gems/twitter-5.16.0/lib/twitter/rest/utils.rb:107:in `perform_get_with_cursor' from /app/vendor/bundle/ruby/2.3.0/gems/twitter-5.16.0/lib/twitter/rest/lists.rb:430:in `cursor_from_response_with_list' from /app/vendor/bundle/ruby/2.3.0/gems/twitter-5.16.0/lib/twitter/rest/lists.rb:248:in `list_members' from scraper.rb:34:in `<main>'

Data

Downloaded 6 times by davewhiteland

To download data sign in with GitHub

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

rows 10 / 242

id name twitter guess_type image
430934081
Dessie Ellis
DessieEllisTD
td
3781736841
Terry Leyden
SenatorTerry
senator
3145278147
Keith Swanick
DrKeithSwanick
?
3012148462
Lynn Ruane
SenLynnRuane
senator
2938946759
Removed
removedireland
?
2805902511
Michael McGrath
mmcgrathtd
td
2791515085
Tony McLoughlin
TonyMcLTD
td
2776653327
MichaelFitzMauriceTD
FitzForDail
td
2529641024
Ruth Coppinger
RuthCoppingerTD
td
2476878848
Gabrielle McFadden
gabmcfadden
?

Statistics

Average successful run time: less than a minute

Total run time: about 8 hours

Total cpu time used: 16 minutes

Total disk space used: 67.8 KB

History

  • Auto ran revision d06219b9 and failed .
    nothing changed in the database
    1 page scraped
  • Auto ran revision d06219b9 and failed .
    nothing changed in the database
    1 page scraped
  • Auto ran revision d06219b9 and failed .
    nothing changed in the database
  • Auto ran revision d06219b9 and failed .
    nothing changed in the database
    1 page scraped
  • Auto ran revision d06219b9 and failed .
    nothing changed in the database
    1 page scraped
  • ...
  • Created on morph.io

Show complete history

Scraper code

Ruby

twitter-ireland-list / scraper.rb