Created
October 22, 2018 15:31
-
-
Save random-robbie/9d5700a17f73668d1673d088fe183893 to your computer and use it in GitHub Desktop.
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
import requests | |
session = requests.Session() | |
headers = {"Origin":"https://sport.bt.com","Accept":"application/json, text/plain, */*","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0","Referer":"https://sport.bt.com/","Connection":"close","If-Modified-Since":"Mon, 22 Oct 2018 14:55:02 GMT","Accept-Language":"en-GB,en;q=0.5","Accept-Encoding":"gzip, deflate"} | |
response = session.get("https://epg.cdn.vision.bt.com/JSON/all", headers=headers) | |
print("Status code: %i" % response.status_code) | |
print("Response body: %s" % response.content) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment