Skip to content

Instantly share code, notes, and snippets.

View SergioCC14's full-sized avatar

Sergio Canis SergioCC14

View GitHub Profile
require 'net/http'
require 'uri'
require 'json'
def open(url)
Net::HTTP.get(URI.parse(url))
end
page_content = open('http://www.loteriasyapuestas.es/servicios/premioDecimoProvisionalWeb')
res_json = JSON.parse(page_content)