Skip to content

Instantly share code, notes, and snippets.

@whizzalan
Created November 9, 2016 12:30
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 whizzalan/65f3f06579e79efc7cbb79a1bc18a866 to your computer and use it in GitHub Desktop.
Save whizzalan/65f3f06579e79efc7cbb79a1bc18a866 to your computer and use it in GitHub Desktop.
taiwanSportLottery
usrAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
getOption("HTTPUserAgent")
options(HTTPUserAgent=usrAgent)
url.regular <- "https://www.sportslottery.com.tw/web/services/rs/betting/tournamentGames/15102/0/t-4102.json?groups=278&groups=283&groups=289&groups=293&groups=683&locale=tw&brandId=defaultBrand&channelId=1"
httr_options("useragent")
curl_docs("useragent")
httr::set_config( config( ssl_verifypeer = 0L ) )
res = GET(url = url.regular,user_agent(usrAgent))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment