diff --git a/scripts/parse_data_api.py b/scripts/parse_data_api.py index 9280878..72419f3 100644 --- a/scripts/parse_data_api.py +++ b/scripts/parse_data_api.py @@ -1,3 +1,4 @@ +import json import os import re import time @@ -185,7 +186,7 @@ def get_with_cursor(ep, s, counter=0): res = None time.sleep(0.8) print(colored(ep.endpoint.format(ep.LIMIT,s), "green")) - return eval(res.content.decode("utf-8")) + return json.loads(res.content.decode("utf-8")) # Keep track of parsed slots to start new file if too many entries slots_parsed = 0