Skip to content

Instantly share code, notes, and snippets.

@gavingmiller
Created July 1, 2024 14:32
Show Gist options
  • Save gavingmiller/b70e07647c3be9d8d9b81bbf6f5ce36a to your computer and use it in GitHub Desktop.
Save gavingmiller/b70e07647c3be9d8d9b81bbf6f5ce36a to your computer and use it in GitHub Desktop.
Joan Source
def GetSource
url = URI.parse('http://www.icogno.com/')
request = Net::HTTP::Get.new(url.path)
response = Net::HTTP.start(url.host, url.port) {|http|
http.request(request)
}
return response.body
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment