Update spider_main.py

main
ptkbf2lr5 2 months ago
parent cce5370169
commit 99a7f3587d

@ -34,7 +34,6 @@ def video_cid(num2):
response.encoding = response.apparent_encoding response.encoding = response.apparent_encoding
content = json.loads(response.text)# 获取cid号 content = json.loads(response.text)# 获取cid号
datalist = [] datalist = []
# if "data" in content and "cid" in content["data"][0]:
cid = content["data"][0]["cid"] cid = content["data"][0]["cid"]
if isinstance(cid, list): if isinstance(cid, list):
datalist.extend(cid) datalist.extend(cid)

Loading…
Cancel
Save