Created
April 1, 2023 17:02
-
-
Save jailsonsf/ab5c2bb8e02bdf8bfdb6dc4f4ceeca71 to your computer and use it in GitHub Desktop.
Desafio - Formação Ruby Developer (DIO)
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
require 'nokogiri' | |
require 'net/http' | |
https = Net::HTTP.new('example.com', 443) | |
https.use_ssl = true | |
response = https.get('/') | |
doc = Nokogiri::HTML(response.body) | |
p = doc.at('p') | |
puts p.content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment