错误:TypeError: the JSON object must be str, not 'bytes'
错误信息:
TypeError: the JSON object must be str, not 'bytes'
错误原因:
data = json.loads(download_page(url).content)['data']
解决方法:
data = json.loads(download_page(url).content.decode())['data']