Skip to content

Instantly share code, notes, and snippets.

@jailsonsf
Created April 1, 2023 17:02
Show Gist options
  • Save jailsonsf/ab5c2bb8e02bdf8bfdb6dc4f4ceeca71 to your computer and use it in GitHub Desktop.
Save jailsonsf/ab5c2bb8e02bdf8bfdb6dc4f4ceeca71 to your computer and use it in GitHub Desktop.
Desafio - Formação Ruby Developer (DIO)
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