AttributeError: 'NoneType' object has no attribute 'find'
title_node = soup.find('dd', attrs={"class": "lemmaWgt-lemmaTitle-title"}).find("h1")
AttributeError: 'NoneType' object has no attribute 'find'
开始用的class_='',后来试了楼上说的attrs=,还是不行
title_node = soup.find('dd', attrs={"class": "lemmaWgt-lemmaTitle-title"}).find("h1")
AttributeError: 'NoneType' object has no attribute 'find'
开始用的class_='',后来试了楼上说的attrs=,还是不行
2017-04-20
举报