Skip to content

Instantly share code, notes, and snippets.

@random-robbie
Created October 22, 2018 15:31
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 random-robbie/9d5700a17f73668d1673d088fe183893 to your computer and use it in GitHub Desktop.
Save random-robbie/9d5700a17f73668d1673d088fe183893 to your computer and use it in GitHub Desktop.
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