我想从这个网站得到一个项目的价格抽取数据:https://paytm.com/shop/p/demonio-SUNDEMONIOS-R-193973BC69538C?tracker=%7C%7C%7C%7C%2Fh%2Fbrand-store%2Ffashion-sale-Best-Selling%20Products%7C1无法从网站
价格位于以下标签:
<span ng-if="!product.product.isOnlyCarCategory">Buy for Rs 79</span>
我使用下面的代码,但它返回一个空列表。
import requests
from bs4 import BeautifulSoup
s=str(raw_input())
r=requests.get(s)
soup=BeautifulSoup(r.content)
item_name=soup.find_all("span",{"ng-if":"!product.product.isOnlyCarCategory"})
print item_name