Python解决AttributeError: 'NoneType' object has no attribute 'find'问题
Python在爬虫中出现AttributeError: 'NoneType' object has no attribute 'find'这个错误是因为加载过快,网页没有显示过来,利用timeout或者time.sleep都可以解决
import time
res = requests.get(url=url, headers=self.headers, timeout=5)
#或者time.sleep()
time.sleep(5)