Last active
September 26, 2015 21:37
-
-
Save oogali/1162755 to your computer and use it in GitHub Desktop.
Engadget front page headlines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/ruby | |
| require 'rubygems' | |
| require 'nokogiri' | |
| require 'open-uri' | |
| document = Nokogiri::HTML open('http://www.engadget.com') | |
| document.xpath('//div[@class="headline"]//a[not(@class)]').each do |topic| | |
| puts topic.text | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment