我试图废除一个使用Python和Beautiful的网站。脚本在python update.py终端上运行得非常好。正如相同的update.py建议的那样,我想每天运行这个程序。/blotter/update.py", line 57, in cleanNoteAttributeError: 'NoneType&
首先,每当我激活这行代码时,我就会得到标题"AttributeError:'NoneType‘object has no attribute 'find_all'“中列出的错误。我要获取的第一个统计数据在第22行,它是错误的来源。第二个统计数据是HTML格式的,也将列在我的代码之后。bs4 import BeautifulSoup
res = requests.get(
'))): print(routeLink) 这将返回错误: Exception has occurred: AttributeError
'NavigableString' object has no attribute 'find_all' 问题是“路由”如何修改我的"routeSection“变量声明以返回&qu
然后我需要从CS页面中得到每一个链接的10个链接。因此,我将有10*10 =100个链接,在最后。= BeautifulSoup(html, "lxml")
rez=link.get('href')for i in rez.find_all('a', limit=10):当我运行它时,我会得到这个错误:
'None