Created
July 27, 2020 19:14
-
-
Save SaschaHeyer/6aa31e0b255083db7cfc8d77eb4a66e2 to your computer and use it in GitHub Desktop.
export.py
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
| URL = "https://api.ioannotator.com/api/export" | |
| # parameter | |
| apikey = "PZK888A-AEQMDPY-MKKPU2Q-JZ786NX" | |
| dataset = "5758665286207488" | |
| # defining a params dict for the parameters to be sent to the IO Annotator API | |
| PARAMS = {'apikey':apikey, 'dataset': dataset} | |
| # sending get request and saving the response (annotations) as response object | |
| r = requests.get(url = URL, params = PARAMS) | |
| # extracting data in json format | |
| data = r.json() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment