腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
BeautifulSoup
没有
属性
“
get
”
、
、
、
import requestschapter = input("Chapter: ")soup =
BeautifulSoup
(src, "html.parser") find = soup.find(id="selectpage").findAll('option') # A drop/www.mangapanda.com/
浏览 37
提问于2020-11-06
得票数 0
回答已采纳
1
回答
BeautifulSoup
-“NoneType”对象
没有
属性
“
get
_text”
、
输出显示from bs4 import
BeautifulSoup
soup =
浏览 3
提问于2020-08-07
得票数 1
1
回答
使用
BeautifulSoup
get
"'NoneType‘对象
没有
属性
’子‘“
、
、
我得到'NoneType‘对象
没有
属性
’子‘错误消息: AttributeError:'NoneType‘对象
没有
属性
’子‘ 如果我手动检查,"soup.find('tbody'
浏览 1
提问于2017-03-14
得票数 2
回答已采纳
2
回答
Python
BeautifulSoup
'NavigableString‘对象
没有
属性
'
get
_text’
、
、
from urllib.request import urlopenimport requests soup =
BeautifulSoup
(urlopen('https://www.instyle.com/beauty'), 'lxml')__name__, attr)) AttributeError: 'Navi
浏览 166
提问于2019-03-11
得票数 1
回答已采纳
1
回答
Python
BeautifulSoup
-
get
onmouseover
属性
、
我想从包含
属性
"onmouseover“的标签中获取javascript函数名。
浏览 2
提问于2012-07-23
得票数 0
回答已采纳
5
回答
使用Python和
BeautifulSoup
基于
属性
解析a标记
、
、
、
、
news-note-recent.gif" width="10"/> </span> </br>我只希望在
没有
子选项卡但是,我还
没有
弄清楚如何使用
BeautifulSoup
引用Python循环中的子选项卡。以下是我的尝试:
浏览 0
提问于2013-12-06
得票数 2
回答已采纳
1
回答
网页抓取AttributeError
、
我正在尝试使用
BeautifulSoup
在一个网站上获取一个带有特殊id的号码。这是我的代码from bs4 import
BeautifulSoup
logging.basicConfig()bsObj =
BeautifulSoup
(str(html), "html.parser") select
浏览 0
提问于2016-08-11
得票数 0
1
回答
我一直在尝试这段代码,但是当我编译它时,我不知道该做什么
、
from bs4 import
BeautifulSoup
import timeimport smtplib soup1 =
Beautif
浏览 8
提问于2022-06-28
得票数 0
1
回答
AttributeError:'NoneType‘对象
没有
属性
'
get
_text’。
BeautifulSoup
对象失败
、
、
、
、
我是,用
BeautifulSoup
在亚马逊网站上搜索,但是当我运行代码时:from bs4 import
BeautifulSoup
like Gecko) Chrome/92.0.4515.131 Safari/537.36'} page = requests.
get
(URL, headers= headers) soup =
Beautifu
浏览 5
提问于2021-08-13
得票数 1
1
回答
BeautifulSoup
4 - AttributeError:'NoneType‘对象
没有
属性
get
_text
、
、
但是,我在说AttributeError:'NoneType‘对象
没有
属性
'
get
_text’时遇到了错误。下面是HTML:这是我试过的密码。from bs4 import
BeautifulSoup
url = 'https://www.edgeprop.my/buy/kelantanx64) AppleWebKit/537.36 (KHTML, like Gecko) C
浏览 5
提问于2022-04-16
得票数 0
回答已采纳
1
回答
使用
BeautifulSoup
AttributeError进行Python抓取:'NoneType‘对象
没有
属性
'text’
、
、
我不知道为什么要收到错误消息AttributeError:'NoneType‘对象在使用
BeautifulSoup
在WebScraping上运行Python 2中的代码时
没有
属性
'text’?错误信息:在()AttributeError:'NoneType‘对象
没有
属性
'text’ from bs4 import <e
浏览 0
提问于2019-01-09
得票数 2
回答已采纳
1
回答
使用
BeautifulSoup
解析XML中的Unicode对象错误
、
、
、
使用
BeautifulSoup
解析XML输出中的'name‘标记的内容会导致以下错误:for eachStud in range(len(stud_info)): print stud_info[eachStud].dept.
get
_text() #Gives 'chem
浏览 0
提问于2014-04-24
得票数 0
回答已采纳
4
回答
在
BeautifulSoup
中访问
属性
时出现问题
、
、
我在使用Python (2.7)时遇到了问题。代码主要由以下几部分组成:z = BeautifulStoneSoup(str) # if 'at' in x: print x['at'] pri
浏览 1
提问于2011-05-01
得票数 6
回答已采纳
1
回答
美汤元内容标签
、
、
、
我正试着用
BeautifulSoup
来做这件事,所以,我正在尝试:但是我得到一个空字符串作为结果,这可能是有意义的,当一个打印的汤对象
浏览 5
提问于2015-12-16
得票数 4
回答已采纳
3
回答
BeautifulSoup
-检查
属性
/如果
没有
属性
、
、
inputlist): fullurl = baseurl + url hotelsoup =
BeautifulSoup
(hotelresponse.text, "lxml")然后,迭代它 ( B)如果不存在酒店高价,请找一个不同的值(我将
浏览 3
提问于2016-04-23
得票数 1
回答已采纳
1
回答
用BS4 "lxml“刮取XML数据
、
、
、
、
试图解决与这个问题非常相似的问题:我有以下代码:import requests r = requests.
get
('https:/
浏览 1
提问于2018-04-03
得票数 2
3
回答
BeautifulSoup
如何从<a>标签中获取文本
、
、
<a href="/all/views/all/" class="cmc-link">7,457</a>from bs4 import
BeautifulSoup
url = 'https://coinmarketcap.com/'soup =
BeautifulSou
浏览 1
提问于2020-10-20
得票数 0
回答已采纳
1
回答
如何抓取
没有
href
属性
的链接?
、
我想提取链接,但
没有
给出任何href
属性
。如何从页面上抓取链接?from bs4 import
BeautifulSoup
for count in range(1,421): sou
浏览 1
提问于2018-12-28
得票数 1
2
回答
Python
BeautifulSoup
属性
错误
、
import requestssoup =
BeautifulSoup
(data.text, 'html.parser') main = soup.find('div',{'id':'t
浏览 2
提问于2018-11-09
得票数 0
回答已采纳
1
回答
美汤:从HTML有序列表中提取href
、
、
、
、
我正在尝试使用HTML模块从
BeautifulSoup
有序列表中提取URL。我的代码返回一个列表,其中
没有
一个值的数量等于有序列表中的项数,因此我知道我在文档中的正确位置。我做错了什么?</li>`page= urllib2.urlopen(url)li=soup.select("ol > li") print (link.
get
('href'
浏览 0
提问于2013-04-29
得票数 2
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
云直播
即时通信 IM
实时音视频
活动推荐
运营活动
广告
关闭
领券