-
-
Save anonymous/40c4648536e4aff6f301 to your computer and use it in GitHub Desktop.
This file contains 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
def url | |
puts ' enter url' | |
gets.chomp | |
end | |
when 1 | |
data = Nokogiri::HTML(open(url)) | |
puts data.at_css("#news").text.gsub "\n", "\r" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment