def make_json(url): # pragma: no cover
"""Make a dictionary out of a json file."""
response = requests.get(
url,
headers={'User-agent': 'UIP'},
# gets system proxy (if it is currently using one)
proxies=getproxies())
json_file = response.text
data = json.loads(json_file)
return data
评论列表
文章目录