Skip to content

Instantly share code, notes, and snippets.

@i0rek
Created Nov 6, 2012
Embed
What would you like to do?
require 'json'
url = "http://search.tez-tour.com/toursearch/getResult?accommodationId=2&after=29.11.2012&before=29.11.2012&cityId=345&countryId=5732&currency=8390&hotelClassId=12703&hotelClassBetter=true&hotelInStop=false&locale=ru&nightsMin=7&nightsMax=7&noTicketsFrom=false&noTicketsTo=false&priceMax=9999999&priceMin=0&rAndBId=15350&rAndBBetter=true&formatResult=true&xml=false&"
JSON.parse(Typhoeus.get(url).body.force_encoding("utf-8"))
#=> => {"success"=>true, "serverName"=>"don.teztour.com", "data"=>[[1, "29.11.2012", "Чт", [...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment