Created
November 9, 2016 12:30
-
-
Save whizzalan/65f3f06579e79efc7cbb79a1bc18a866 to your computer and use it in GitHub Desktop.
taiwanSportLottery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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