腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
结果
为
BeautifulSoup
空
数组
python
、
beautifulsoup
、
python-requests
我是
beautifulSoup
的新手,我想知道为什么当我尝试检索this网站的船的价格时,它返回一个
空
数组
?下面是我的代码: from bs4 import
BeautifulSoup
source = requests.get('https://www.moorings.co.uknumberOfDays=7&numberOfPassengers=2&numberOfToilets=All&numberOfShowers=All&am
浏览 10
提问于2020-06-17
得票数 0
1
回答
使用
BeautifulSoup
结果
为
空
twitter
、
beautifulsoup
、
no-response
没有错误,但
结果
为
空
。我找不到问题的代码在下面:如果你能帮我,那就太好了,所以我将在我的论文中使用数据import urllib.requestresp = urllib.request.urlopen(req)soup =
BeautifulSoup
浏览 5
提问于2016-10-24
得票数 0
1
回答
BeautifulSoup
空
结果
python
、
web-scraping
、
beautifulsoup
我目前正在运行以下代码: from bs4 import
BeautifulSoup
html = htmltext.read() for item in soup.find_all我可能在这里犯了一个明显的错误,我刚接触过Python和
BeautifulSoup
浏览 2
提问于2014-12-20
得票数 0
回答已采纳
1
回答
无法在python中打印数据
python
、
beautifulsoup
、
python-requests
、
webdriver
我的目标是从单个站点的多个链接中提取数据,但我面临的问题是在3个链接后打印
空
数组
。它打印从1到2的
结果
,然后在第二个链接后打印
空
数组
,然后再次打印非
空
数组
。另外,我的代码处于运行状态。这样,在
空
数组
的情况下,它将达到700。import requestsimport pandas as pdsuit =[] url=["
浏览 25
提问于2021-10-23
得票数 0
1
回答
href捕捉
python
、
html
、
regex
、
beautifulsoup
我使用
BeautifulSoup
解析一些html。我的代码是:print contentSoup.findAll('a', href=re.compile('/isp/(.*)'))
结果
是
空
数组
,为什么?
浏览 2
提问于2010-07-17
得票数 0
回答已采纳
1
回答
在xml中查找所有<url>标记
python
、
xml
、
python-3.x
、
beautifulsoup
我有这样的代码: print(xml.find_all('url')) 但是我得到了一个
空
数组
作为返回
结果
浏览 0
提问于2017-09-26
得票数 0
2
回答
我的代码有什么问题,当我使用find()方法时,它输出none,而当我使用findAll()方法时,它输出
空
数组
?
python
、
web
、
web-scraping
、
beautifulsoup
、
python-requests
from bs4 import
BeautifulSoup
soup =
BeautifulSoup
(response.content, 'html.parser') title = soup.findAll('div', {'class'
浏览 4
提问于2021-05-26
得票数 0
回答已采纳
1
回答
Python美汤不起作用如何在google搜索中用class='st‘抓取div这是我的代码
python-3.x
results值始终
为
空
。如何使用类st在div中获取
结果
import requests soup =
BeautifulSoup
(response.text, 'html.parser') results = soup.find_all('div
浏览 11
提问于2019-11-15
得票数 0
2
回答
Python
BeautifulSoup
返回空列表
python
、
web-scraping
、
beautifulsoup
我正在尝试创建一个Python脚本,使用
BeautifulSoup
从tcgplayer.com中拉出YuGiOH卡的价格。当你在这个网站上搜索一张卡时,它会返回一页搜索
结果
,其中包含来自不同卖家的几种价格。我的目标是拉动所有这些价格。在下面的例子中,我打开了一个名为"A“细胞繁育设备的卡片的搜索
结果
:from bs4 import
BeautifulSoup
html = urllib2.open('false&ProductType=All&IsProd
浏览 5
提问于2017-02-27
得票数 3
回答已采纳
1
回答
BeautifulSoup
- .string
为
空
beautifulsoup
当我在
BeautifulSoup
中使用.string时,它应该返回文本/内容。但是,当我在下面这样的项目上执行时,它不会返回任何内容。那么我如何让它返回该内容,以便我可以执行.replace_with()soup=
BeautifulSoup
(html, 'ht
浏览 52
提问于2021-06-01
得票数 1
2
回答
美丽的Soup find_all()返回奇怪的标签而不是
结果
python
、
xml
、
beautifulsoup
information about the bot from the file soup =
BeautifulSoup
浏览 5
提问于2014-10-05
得票数 2
回答已采纳
1
回答
使用
Beautifulsoup
在实例化时提供一个ResultSet对象
python
、
web
、
beautifulsoup
、
python-requests
、
screen-scraping
我正在尝试使用
beautifulsoup
,但是当我用一个html对象实例化它时,它告诉我它是一个ResultSet对象,并且我试图运行的任何方法都会失败并返回一个AttributeError。bs =
BeautifulSoup
()type(bs) == type(soup) 我已经尝试过response.content,并得到了同样的
结果
,但还没有从其他问题中找到这个确切的问题。
浏览 10
提问于2020-02-27
得票数 0
回答已采纳
1
回答
如何用
BeautifulSoup
解析包含XSD的命名空间
python
、
xml
、
python-3.x
、
xsd
、
beautifulsoup
考虑到XML,我想创建一个包含所有XML元素名称的
数组
。我的错误是我的
结果
是
空
的。.: from bs4 import
BeautifulSoup
...: result = requests.get('http://www.ddialliance.org/Version2-1.xsd') ...: ...: soup =
BeautifulSoup</
浏览 0
提问于2018-02-27
得票数 0
回答已采纳
1
回答
美丽的汤find_all给
空
列表
python
、
web-scraping
、
beautifulsoup
我使用find_all函数的
BeautifulSoup
,它找到了我的标题行,但返回和
空
列表的价值。我的代码如下所示: from urllib.request import urlopen html1=urlopen(url1)
浏览 1
提问于2020-04-05
得票数 0
回答已采纳
2
回答
用美汤抓取Flipkart网页
python
、
beautifulsoup
我尝试使用类"fk-ui-ccarousel-supercontainer am vreco-section carousel-border-top sameHorizontalReco“查找div,但返回的
结果
为
空
from bs4 import
BeautifulSoup
url = "http://www.flipkart.com/moto-x-play/p/itmeajtqp9sfxgsk3A72246476104
浏览 0
提问于2016-01-12
得票数 1
1
回答
如何使Python在bs4上正常工作?
python
、
xml
、
unicode
、
beautifulsoup
/usr/bin/pythonfrom bs4 import
BeautifulSoup
print(
BeautifulSoup
('<x><c name="b1"><d value="a"/></c></x>', feat
浏览 1
提问于2016-03-22
得票数 2
回答已采纳
2
回答
Python漂亮的Soup代码不工作
python
、
linux
、
beautifulsoup
我在linux中尝试了这段代码,它给出了
空
的输出。我刚刚复制并粘贴了BS文档from
BeautifulSoup
import
BeautifulSoup
soup =
BeautifulSoup
("""Bob's <class="hickory">Hickory</b> and <b class="lime">Lime</a>"&q
浏览 2
提问于2011-06-08
得票数 0
回答已采纳
1
回答
规则
结果
集
为
空
数组
symfony
、
doctrine-orm
、
doctrine
、
twig
我正在尝试从mySQL
结果
集中输出数据,并且遇到了极大的困难。当我将
结果
集传递回twig并使用{{ dump() }}时,它会返回一个
空
数组
,而当我从phpmyadmin运行相同的查询时,它会按照预期填充
结果
,所以它不是查询。
浏览 1
提问于2013-10-04
得票数 0
点击加载更多
相关
资讯
空数组与空对象
PHP去除数组中的空值元素
Python3使用BeautifulSoup解析百度关键词搜索结果
一些常用的PHP数组函数和php清除数组中的空值-array
Java Optional 初始为空
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
腾讯会议
活动推荐
运营活动
广告
关闭
领券