Beautifulsoup Href提取隐藏或不起作用

问题描述 投票:0回答:1

我正在尝试从该图像中提取黄色标记的文本-

Image Here

我尝试了所有可用于提取链接的代码,例如我使用了-->这样的代码

links = [a.get('href') for a in soup.find_all('a', { "id" : "price-and-shop-body" }, href=True)]
links

没有任何作用。

您有解决方案吗?

我正在尝试从该图像中提取以黄色标记的文本-图像在这里,我尝试了所有可用于提取链接的代码,例如我使用的代码是--links = [a.get('href')for in ...

python html web-scraping beautifulsoup scrape
1个回答
0
投票

可能是您没有打印出来。您可以将代码放入其中。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.