腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
BeautifulSoup
‘
NoneType
()’
返回
find
值
python
、
web-scraping
、
beautifulsoup
、
attributeerror
、
nonetype
代码如下: from bs4 import
BeautifulSoup
price = soup.
find
(id="priceblock_ourprice").get_text() # Error happenshere
浏览 20
提问于2020-06-28
得票数 1
回答已采纳
2
回答
无法使用
BeautifulSoup
提取span元素
python
、
html
、
beautifulsoup
我正在使用
BeautifulSoup
来尝试提取这个
值
。我尝试过的: pg = requests.get(websitelink)value = soup.
find
('span',{'class':'wall-header__item_count'}).text 我尝试过
find
和
find
all,但它
返回<
浏览 40
提问于2021-09-13
得票数 1
回答已采纳
2
回答
Pycharm不能导入
Beautifulsoup
python
、
python-2.7
、
python-3.x
、
beautifulsoup
、
web-crawler
Pycharm: 2016.2.3 (Project Interpreter 3.5.2) 我一直在开发一个基于
BeautifulSoup
库的网络爬虫,但有一个错误消息我永远无法摆脱。我在Pycharm中安装了
beautifulsoup
4库,它甚至可以加载库,但当它遇到"
find
“函数时,它总是回复错误消息,"
NoneType
‘对象没有’
find
‘属性”。
浏览 0
提问于2016-12-23
得票数 0
2
回答
无法从python中的html页面提取文本
python
、
beautifulsoup
、
html-parsing
我读到了关于
BeautifulSoup
的文章,并试图使用它。但我无法提取具有给定类名“company-desc-and-排序容器”的文本。我甚至不能从html页面中提取标题。这是我尝试过的代码:import requests r = requests.get(url) soup =
Beautifu
浏览 5
提问于2016-12-20
得票数 1
回答已采纳
1
回答
文本:“”
NoneType
“”对象没有属性“”text“”?
python
、
beautifulsoup
我正在尝试在我的脚本中运行以下命令: psi = soup.
find
("div", {"class": "panel-stats-value-content"}).text 不过,当我运行它时,它的响应是: AttributeError: '
NoneType
' object has no attribute 'text' 我该如何解决这个问题呢?
浏览 21
提问于2019-09-17
得票数 1
回答已采纳
1
回答
使用python解析HTML中的表
python
、
html
、
parsing
该网页为import urllib2 table = soup.
find
('tr', attrs={'class':\data.py
浏览 0
提问于2016-11-03
得票数 0
3
回答
获取属性错误:“
NoneType
”对象没有属性getText
python
、
function
、
beautifulsoup
、
nonetype
from bs4 import
BeautifulSoup
import re a= str(a) a=bsoup.
find
('link').getText() b=str(b)bsoup=
BeautifulSoup
(b) b=bsoup.
find
('t
浏览 3
提问于2013-10-27
得票数 1
回答已采纳
2
回答
使用
BeautifulSoup
提取数据,
返回
NoneType
python
、
html
、
web-scraping
、
beautifulsoup
当使用soup.
find
提取表格数据时,变量table
返回
一个
NoneType
。错误是:'
NoneType
‘对象没有'
find
’属性。来自网站的类名显示在下面的图片中,所以我并没有使用错误的类名。import requests url = "https://www.wunderground.com/history/monthly/KATL/
浏览 1
提问于2019-12-25
得票数 0
2
回答
我不理解此AttributeError的原因:'
NoneType
‘对象没有'
find
_all’属性
python
、
beautifulsoup
、
python-requests
import requestsurl="https://ratings.fide.com/top_lists.phtml"soup =
BeautifulSoup
(html,"html.parser") list = soup.
find
("tbody").
find
_all("tr",li
浏览 0
提问于2021-01-05
得票数 0
2
回答
如何在漂亮汤中从span标签中获取字符串
python
、
html
、
beautifulsoup
我尝试使用文本属性,但得到的结果是AttributeError:
NoneType
对象没有text属性。source = requests.get("https://www.k-ruoka.fi/kauppa/tuotehaku").text f
浏览 38
提问于2019-01-13
得票数 0
回答已采纳
1
回答
python '
NoneType
‘对象没有属性'findAll’
python
、
beautifulsoup
print(bsObj.
find
(id="mv-content-text").findAll("p")[0]) 我用python3.6来练习刮伤。代码是从书,网络刮与皮宏。为什么不能使用
find
.().findAll()
浏览 9
提问于2017-06-27
得票数 1
回答已采纳
1
回答
BeautifulSoup
对象作为
NoneType
返回
python
、
beautifulsoup
下面的代码应该在pythonscraping.com下载徽标图像,但
返回
错误:“from urllib.request import urlopen from bs4 impo
浏览 2
提问于2022-04-22
得票数 0
回答已采纳
1
回答
在美汤中使用
NoneType
函数时
返回
一个
find
值
python
、
pandas
、
beautifulsoup
find
函数
返回
一个pandas
值
,而我不知道如何继续将所有表提取到
NoneType
DataFrames中。matplotlib.pyplot as pltimport matplotlib.ticker as ticker from bs4 import
BeautifulSoup
www.federalreserve.gov/monetarypolicy/bst_recenttrends_accessible.htm
浏览 17
提问于2020-09-12
得票数 0
回答已采纳
3
回答
AttributeError:'
NoneType
‘对象没有属性'attrs’
python
AttributeError: '
NoneType
' object has no attribute 'attrs'import urllib2Request(url, headers={'User-Agent' : "Magic Browser"}) soup =
BeautifulSoup
(page,'html.
浏览 0
提问于2018-03-29
得票数 0
回答已采纳
1
回答
BeautifulSoup
在任何soup命令上
返回
‘`
NoneType
`’
python
、
web-scraping
、
beautifulsoup
我正在使用
BeautifulSoup
抓取“华尔街日报”,但它似乎永远找不到id=的“顶部新闻”元素,它总是可以在主页上找到。我已经尝试了
find
()、
find
_all()和各种其他方法,它们都为在
NoneType
对象上调用的任何方法
返回
一个
NoneType
。import requestsfrom shutil import copy
浏览 3
提问于2021-05-27
得票数 1
回答已采纳
1
回答
Python递归
返回
不同
python
、
recursion
蟒蛇的
返回
是不同的,我不明白为什么: from bs4 import
BeautifulSoup
if table.
find
_next(table) soup =
BeautifulSoup
(fp.read(), features="html.parser") print(len(recur
浏览 20
提问于2020-04-15
得票数 1
1
回答
处理TypeError:
BeautifulSoup
中的“
NoneType
”
python
、
exception
、
beautifulsoup
、
typeerror
我正在用
BeautifulSoup
抓取一个网页,我查找csrf令牌的行有时会抛出一个TypeError。守则是:
返回
的错误是:如果这个
值
不存在,我只想继续脚本,而不是抛出异常--知道这是怎么可能
浏览 4
提问于2015-03-07
得票数 3
回答已采纳
3
回答
Python属性错误:'
NoneType
‘对象没有属性'
find
_all’
python
、
python-3.x
、
beautifulsoup
、
attributeerror
我正在尝试获取美国各州的缩写,但这段代码:from urllib.request import urlopenweb=urlopen(url)table=source.
find
('table', {'class':
浏览 0
提问于2017-11-20
得票数 1
回答已采纳
1
回答
BeautifulSoup
文档中给出的不工作的示例
python
、
beautifulsoup
我正在尝试
BeautifulSoup
文档中给出的示例,其中一个例子是没有给出预期的结果。</p>soup =
BeautifulSoup
(html_doc)soup.
find
_all('b')但是,当我尝试相同的命令时,我得到的错误如下所示 >&g
浏览 3
提问于2015-01-19
得票数 1
回答已采纳
2
回答
我想从
Beautifulsoup
类继承来完成以下任务
python
、
html
、
python-3.x
、
web-scraping
、
beautifulsoup
我在Python3.5.1和
Beautifulsoup
4上运行。我现在有这样的代码:import html5lib '
NoneType
' object is not callable 我实际上希望复制以下示例代码(在我的示例中,我希望使用
Beautifulsoup
而不是html.parser
浏览 18
提问于2016-09-24
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Python爬虫之BeautifulSoup详解
享学课堂浅谈Python3中BeautifulSoup的使用方法
BeautifulSoup常用解析库-爬虫干货系列5
送上一碗鸡汤——BeautifulSoup网页解析
【一起学爬虫】BeautifulSoup库详解
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券