Python 无法在阻塞的div中刮除字符串

Python 无法在阻塞的div中刮除字符串,python,web-scraping,beautifulsoup,python-requests,Python,Web Scraping,Beautifulsoup,Python Requests,这是我的密码: import requests from bs4 import BeautifulSoup page = requests.get('https://fado.vn/today-deals') soup = BeautifulSoup(page.text, 'html.parser') price = soup.find_all(class_="product-panel__price-field") for i in price: print(i.text) 此代码返

这是我的密码:

import requests
from bs4 import BeautifulSoup
page = requests.get('https://fado.vn/today-deals')
soup = BeautifulSoup(page.text, 'html.parser')
price = soup.find_all(class_="product-panel__price-field")
for i in price:
    print(i.text)

此代码返回Clickđể xem báo giá这意味着点击查看价格,尽管HTML中有实际价格。我猜他们在阻止价格。你知道真正的原因是什么以及如何通过阻塞吗?请帮忙 感谢@ewlink,问题解决了。他建议我用硒,效果很好。这是一个很好的工具,可以在使用Beautiful soup解析HTML之前导航到页面。

未被阻止,它是动态页面,使用seleniumNice建议!它工作得很好。非常感谢。