如何使用beautifulSoup从该网站中删除文本

2024-09-30 12:28:32 发布

您现在位置:Python中文网/ 问答频道 /正文

这是一个示例链接,但我试图从Pokemoncenter website中刮取

我想削价出售,但什么也得不到

prices = soup.find_all('span',attrs={'class':'jsx-1022525614 product-price-value'})
for price in prices:
    print(price.text)

这是一个空白行

我试过了

    for price in prices:
        ItemPrice = price.string
        print(ItemPrice)

它打印“无”


Tags: in示例for链接websiteallfindprice

热门问题