Skip to content

Instantly share code, notes, and snippets.

@chrisallick
Created August 4, 2016 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisallick/c771ddc216dd2e572396129dea7a08b9 to your computer and use it in GitHub Desktop.
Save chrisallick/c771ddc216dd2e572396129dea7a08b9 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'httparty'
require 'json'
url = 'https://runsignup.com/Race/Results/?raceId=24868&resultSetId=13392&page=1&num=10&last_name=&first_name=&bib_num=&city=&gender=&countrycode=&state='
response = HTTParty.get(url, headers: {
"Accept" => "application/json, */*; q=0.01",
"X-NewRelic-ID" => "VQQBV1FXGwQIXFRaAw==",
"X-Requested-With" => "XMLHttpRequest"
})
puts response.parsed_response.to_json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment