Skip to content

Instantly share code, notes, and snippets.

@psychemedia
Created November 19, 2019 22:12
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 psychemedia/6e12ea5d4c8eefe82cd277d37b31dcd0 to your computer and use it in GitHub Desktop.
Save psychemedia/6e12ea5d4c8eefe82cd277d37b31dcd0 to your computer and use it in GitHub Desktop.
Example of handling compressed json
import requests
url = 'https://webappsdata.wrc.com/srv/fs/pull/1a3cdf87-4d91-435c-a1f9-7aab556fc3b1/ss07mee_telemetry_js_merged/js'
#I get an SSL error so dump the verification
r = requests.get(url, verify=False)
import gzip
import base64
import json
jsonTxt = gzip.decompress(base64.b64decode(r.text))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment