python 'NoneType' object has no attribute 'get'

获取 页面连接的时候报错 'NoneType' object has no attribute 'get'html href = div.find("a").get("href")post 同样的代码 换个网站获取就报错 。网站 最终是 数据来源的问题,解析的时候 不是全部的div 都是须要的数据  须要过滤一下htm 相似于这种blog   转载于:https://www.cnblogs.com
相关文章
相关标签/搜索