【发布时间】:2020-04-23 18:55:55
【问题描述】:
我正在尝试讨价还价,但我无法退货。 span 标签中包含我认为可能导致问题的数据量。
看起来像这样
<span class="productPrice" data-amount style>€ 100.00</span>
我试过了:
price = soup.find("span", class_="productPrice").get_text()
但是没有运气。
任何帮助都将不胜感激!
【问题讨论】:
-
建议:尝试
.text而不是.get_text()
标签: python beautifulsoup scrape