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
相關文章
相關標籤/搜索