Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'nokogiri'
- require 'open-uri'
- get_url = "http://google.com"
- doc = Nokogiri::HTML(open(get_url))
- puts doc
- require 'nokogiri'
- require 'open-uri'
- get_url = gets
- doc = Nokogiri::HTML(open(get_url))
- puts doc
Add Comment
Please, Sign In to add comment