腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
使用
Beautiful
Soup
的
分析
范围
:“
NoneType
”
对象
没有
属性
“
text
”
、
__name t-16 t-black t-bold truncated-
text
">
soup
= Beautif
浏览 22
提问于2021-05-02
得票数 0
2
回答
网页提取时
的
Pythonerror : AttributeError:'
NoneType
‘
对象
没有
属性
'find_all’
、
、
拥有urlpage = 'fasttrack.co.uk/league-tables/tech-track-100/league-table' # parse the html using
beautiful
soup
and store in var
浏览 0
提问于2020-05-03
得票数 0
1
回答
用漂亮汤解析NELL知识库页面
、
、
、
、
我正在
使用
Beautiful
解析来自
的
类别列表,我得到了这个页面的html代码: <head> <script type="
text
/javascript&qu
浏览 0
提问于2015-04-14
得票数 1
回答已采纳
2
回答
Python
Beautiful
Soup
- AttributeError:'
NoneType
‘
对象
没有
'find_all’
属性
、
、
如果这个问题似乎是重复
的
,很抱歉。 作为练习,我正在尝试从LinkedIn中获取工作数据。我已经在autonews.com上
使用
了相同
的
代码,它似乎工作得很好。然而,我不知道这是否是网站上容器
的
命名方式,或者是代码中需要更改
的
其他东西。 总之,长话短说,对于初学者来说,我只需要以下信息:职位,公司名称,地点和网址。location=Germany" content = response.cont
浏览 41
提问于2021-08-23
得票数 0
回答已采纳
4
回答
将web数据传递到“美丽汤”-空列表中
、
、
、
、
我已经重新检查了我
的
代码,并查看了打开URL将web数据传递给
Beautiful
的
类似操作,由于某种原因,我
的
代码
没有
返回任何内容,尽管它
的
形式是正确
的
:AttributeError: '
NoneType
' object has no attr
浏览 3
提问于2014-07-31
得票数 7
回答已采纳
1
回答
用漂亮汤中
的
Python字典修改HTML元素
、
、
当我尝试
使用
Beatiful和Python字典修改
NoneType
元素时,我得到
的
‘’
对象
不支持项分配。 'title-
text
': ['
text
', re
浏览 0
提问于2019-09-12
得票数 0
回答已采纳
2
回答
Unicode编码错误: Charmap无法在Python中编码字符\xa9
、
、
、
、
嗨,我正在写抓取代码,但当我试图从网站获取所有段落时,它给我以下错误Unicode Encode错误: Charmap无法编码字符'\xa9‘thepage = urllib.request.urlopen(newsurl) article
浏览 0
提问于2017-01-20
得票数 0
1
回答
使用
BeautifulSoup AttributeError进行Python抓取:'
NoneType
‘
对象
没有
属性
'
text
’
、
、
我不知道为什么要收到错误消息AttributeError:'
NoneType
‘
对象
在
使用
BeautifulSoup在WebScraping上运行Python 2中
的
代码时
没有
属性
'
text
’?错误信息:在()AttributeError:'
NoneType
‘
对象
<
浏览 0
提问于2019-01-09
得票数 2
回答已采纳
2
回答
soup
.find有时只返回"none“吗?
、
我正在抓取一个亚马逊产品页面,并
使用
Beautiful
Soup
来查找产品名称和价格。由于某些原因,"title“变量有时会返回,而有时我会得到这样
的
错误:"'
NoneType
‘
对象
没有
’get_
text
‘
属性
” import requests from bs4 import BeautifulSoupmd2lkZ2V0TmFtZT1zcF9hdGYmYWN0aW9uPWNsaWNrUmVkaXJlY3
浏览 35
提问于2020-07-23
得票数 1
回答已采纳
3
回答
Python错误:'
NoneType
‘
对象
没有
使用
Beautiful
Soup
的
属性
'find_all’
、
、
OpenDocument 我正在尝试从表中抓取某些元素,但收到以下错误: Python Error: '
NoneType
' object has no attribute 'find_all' 我知道这与它实际上
没有
找到表有关OpenDocument'
soup
= BeautifulSoup(page.
text
, 'html.parser') table =
soup
.find(
浏览 44
提问于2020-04-18
得票数 1
回答已采纳
1
回答
Python:“”
NoneType
“”
对象
没有
属性
“”
text
“”,XML
分析
、
、
、
我正在尝试
使用
Spirit获取XML文件,解析数据,并将其输出为csv文件。我觉得我忽略了一些简单
的
东西。AttributeError: '
NoneType
' object has no attribute '
text
' 示例XML文件: <?df = pd.DataFrame(rows, columns=cols)# Writing dataframe to csv df.to_csv('output.csv') 我怀疑我
的
错误是
浏览 46
提问于2021-09-09
得票数 0
回答已采纳
2
回答
在python中
使用
Beautiful
soup
和requests时web抓取错误
、
、
、
我正在尝试编写用于跟踪亚马逊价格
的
代码,product.The代码如下from bs4 import BeautifulSoup page=requests.get(url,headers=header)
soup
1=BeautifulSoup(page.content,"ht
浏览 2
提问于2020-06-16
得票数 0
2
回答
Python: AttributeError:'
NoneType
‘
对象
没有
'findNext’
属性
、
、
我遵循了一个用python2.7编写
的
教程,里面有完全相同
的
代码,
没有
任何问题。= BeautifulSoup(htmltext)print (body.
text
)Traceback (most recent call last): File
浏览 0
提问于2014-01-29
得票数 3
回答已采纳
2
回答
AttributeError:“
NoneType
”
对象
没有
属性
“”find_all“”Python Web Scraping w/
Beautiful
Soup
“”
、
、
、
首先,每当我激活这行代码时,我就会得到标题"AttributeError:'
NoneType
‘object has no attribute 'find_all'“中列出
的
错误。bs4 import BeautifulSoup
soup
= BeautifulSoup(res.
浏览 0
提问于2020-08-10
得票数 0
2
回答
正在
分析
XML: AttributeError:'
NoneType
‘
对象
没有
属性
'
text
’
、
我
的
Output.xml
的
数据是 <?xml version="1.0" encoding="utf-8"?AttributeError: '
NoneType
' object has no attribute '
text
' 11
浏览 17
提问于2021-10-03
得票数 0
2
回答
“
NoneType
”
对象
在获取google结果时
没有
属性
“
text
”
、
、
、
在这篇文章中,我询问了更多关于如何在日期
范围
内从谷歌获得结果
的
信息,但结果被关闭为重复。不幸
的
是,所建议
的
另外两项结果并
没有
解决我在获得这个数字方面的问题。= BeautifulSoup(r.
text
)我发现了这个错误: 追尾(最近一次调用)在1415汤= BeautifulSoup(r.
浏览 9
提问于2020-03-08
得票数 0
回答已采纳
1
回答
**
属性
错误:'
NoneType
‘错误。与BS有关
的
问题
、
我试图
使用
漂亮汤运行这段代码,但是我得到了以下错误:下面是代码行:pages = pageSoup.find('span', {'class', 'textual-pager
te
浏览 6
提问于2020-12-18
得票数 0
回答已采纳
2
回答
如何在网络上抓取IMDB电影评级
、
、
我试图从IMDB
的
网站上刮起电影
的
评级。但是,我得到了这个错误:rating_sauce = urllib.request.urlopen('httpsref_=tt_urv')rating_
soup
= bs.BeautifulSoup(rating_sauce, 'html.pa
浏览 1
提问于2021-12-14
得票数 2
2
回答
Python 'NavigableString‘
对象
没有
属性
get_
text
、
account-places"> <ul class="location-history"> <li>
Text
/li> </div>我有下面的BeautifulSoup代码来完成它: from bs4 import BeautifulSo
浏览 3
提问于2018-06-05
得票数 8
回答已采纳
2
回答
用BeautifulSoup : TypeError:'
NoneType
‘
对象
刮取
的
网站不可调用
、
、
我是个十足
的
初学者。我尝试
使用
BeautifulSoup和刮一个网站。我确实得到了HTML,但是现在我想得到所有具有类divs
的
content_class。url = 'mywebsite'html = response.content
soup
= BeautifulSoup(html)
soup
.find_all('div', cla
浏览 1
提问于2017-07-02
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Python爬虫之BeautifulSoup详解
Python常用库二:Beautiful Soup
干了这碗汤,你也可以愉快地爬虫了
Python爬取:Python教程并制作成pdf
Python 爬虫:爬取小说花千骨
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券