Skip to content

Instantly share code, notes, and snippets.

@takuros
takuros / lower_house_scrape.rb
Created November 12, 2014 16:40
衆議院議員一覧から名前を抜き出して、ヤフー「つぶやき感情分析」で好悪を調べる
require 'nokogiri'
require 'open-uri'
require 'capybara'
require 'capybara/dsl'
require 'selenium-webdriver'
Capybara.run_server = false
Capybara.current_driver = :selenium
Capybara.app_host = "http://realtime.search.yahoo.co.jp/"