Created
July 19, 2016 20:35
-
-
Save SIRHAMY/20e6fc335191d0e45a7250786f3fe457 to your computer and use it in GitHub Desktop.
Access keys from requests module's JSON response
This file contains hidden or 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 | |
#initial request | |
r = requests.get(requestUrl) | |
#Extract JSON | |
rJson = r.json() | |
#Get keywords key from response JSON | |
keywords = rJson.get('keywords') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment