首页 > 解决方案 > 无法使用 Python 和 BeautifulSoup 解析网站的 html

问题描述

我正在尝试使用 python 和 BeautifulSoup 模块从网站https://www.groupeactual.eu/offre-emploi收集href单击查看图像)。但由于某种原因,我无法解析特定的 html 数据。这个问题有什么解决办法。提前致谢 !

这是我的代码,

response = requests.get("https://www.groupeactual.eu/offre-emploi").text
soup = BeautifulSoup(response, "html.parser")
soup1 = soup.find_all("div", class_="js-result-annonce")
soup1

点击图片

标签: pythonhtmlbeautifulsoup

解决方案


怎么样 :

soup.findAll("div", {"class": "js-result-annonce"})

推荐阅读