#本人通过python爬取台湾省气象局的未来一周天气预报,通过beautifulsoup解析出了url,也提取出了table标签,在进一步提取table标签里面的tr标签时,出现错误提示'NoneType' object has no attribute 'find',请教一下这个如何解决
运行结果及报错内容
Traceback (most recent call last):
File "C:\迅雷下载\python\download_taiwan1.py", line 62, in
download_one_station(url)
File "C:\迅雷下载\python\download_taiwan1.py", line 42, in download_one_station
thead = table.find('tr')
AttributeError: 'NoneType' object has no attribute 'find'