Skip to content

Instantly share code, notes, and snippets.

@suginoy
Last active June 4, 2016 17:52
Show Gist options
  • Save suginoy/be96597f9822efc21d62b158c84a7736 to your computer and use it in GitHub Desktop.
Save suginoy/be96597f9822efc21d62b158c84a7736 to your computer and use it in GitHub Desktop.
Confreaks のイベント毎に Nozbe で複数タスクをメール登録するためのテキストを出力する
require 'open-uri'
require 'nokogiri'
url = ARGV[0] # http://confreaks.tv/events/railsconf2016
html = open(url)
doc = Nokogiri::HTML.parse(html, nil)
doc.xpath('//div[@class="video-title"]/a').each do |node|
puts ". #{node.inner_text} http://confreaks.tv#{node.attribute('href').value}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment