会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
IT_小树
好记性不如烂笔头,多多记录遇到的问题和解决办法,丰富自己的技术能力
博客园
首页
新随笔
联系
订阅
管理
2020年8月10日
【Python】 requests 爬取博客园内容AttributeError: 'NoneType' object has no attribute 'xpath'
摘要: 本篇文章主要介绍requests获取网页内容出现 'NoneType' object has no attribute 'xpath' 异常的解决思路 下面是出错的代码: import requests from lxml import etree response = requests.get('
阅读全文
posted @ 2020-08-10 14:20 IT_小树
阅读(12937)
评论(0)
推荐(0)
编辑
公告