Created
November 19, 2019 22:12
-
-
Save psychemedia/6e12ea5d4c8eefe82cd277d37b31dcd0 to your computer and use it in GitHub Desktop.
Example of handling compressed json
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 | |
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