标签:ror eth ret code err none get back else
def getlongtext(self,mid:str,req:requests)->"获取全文逻辑":
allinfo=None
getlongtexturl=f"http://s.weibo.com/ajax/direct/morethan140?mid={mid}"
resp=req.get(getlongtexturl,timeout=60).json()
okcode=resp["code"]
if okcode=="100000":
allinfo=resp["data"]["html"]
else:
print("get log text is error,here are detail:{}",traceback.format_exc())
return allinfo
标签:ror eth ret code err none get back else
原文地址:https://www.cnblogs.com/c-x-a/p/9341992.html