-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
运行两次之后发生了“find_all”返回空值的错误 #2
Comments
我这边没问题 |
汉王次数没有用完,问题识别没有问题,就是答案出不来了 |
你换一个识别图片看看 |
我也出现这问题,应该是要识别的图片不对,没有文字就报这个错误 C:\Users\Administrator\Pictures>python hero.py |
统一更改了一下图片路径,运行了一下 |
还没解决吗?你可以试试运行下面的代码,看看搜索出来没 keyword = '标志是雪山和雄狮的好莱坞电影公司分别是?' convey = 'n' if convey == 'y' or convey == 'Y': |
刚刚试了一下,有些题目能搜索出来,有些不行,难道是广告?? |
Traceback (most recent call last): File "hero.py", line 56, in <module> results = baiduSearch.search(keyword) File "D:\MillionHeroes-master\baiduSearch\search.py", line 8, in search results = process.page(page) File "D:\MillionHeroes-master\baiduSearch\process.py", line 46, in page result_set = result_set.find_all('div', class_='c-container') # 结果class固定,其余为硬广 AttributeError: 'NoneType' object has no attribute 'find_all'
一开始运行正常,尝试几次之后突然出现错误。
The text was updated successfully, but these errors were encountered: