我正在尝试获取一个TikTok视频页面的HTML,请求返回b'‘而不是整个html页面。这在其他站点甚至tiktok主页()上都有效,但在视频页面上不起作用。另外,我得到了返回码,是200。import requests
'user-agent': MY USER AGENT,
page = requests.get("https://www.tiktok.com
我向返回JSON文件的URL发出请求,response = json.loads(response)for documentssomethingTypeError: the JSON object must be str, not 'Response'response = requests.get(url).json()KeyError:
我尝试使用自己的绑定方法更新并返回一个实例属性(类似于更新和返回实例属性的示例),它会引发以下错误: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/queues.py", line 268,r