fix: 修正日志记录格式以正确显示 resinfo 的长度
This commit is contained in:
parent
b4db51a8e7
commit
5169c9250b
2
main.py
2
main.py
@ -606,7 +606,7 @@ def get_searchInfo(keyword, level, headers, proxy_name, r=2):
|
||||
time.sleep((3 - r) * 5)
|
||||
return get_searchInfo(keyword, level, headers, proxy_name, r - 1)
|
||||
resinfo = stories["edges"]
|
||||
logger.info("resinfo :", len(resinfo))
|
||||
logger.info(f"resinfo: {len(resinfo)}")
|
||||
except Exception:
|
||||
if r < 0:
|
||||
logger.info("[搜索接口] 未知:未处理", response.text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user