python - 无法使用 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
解决方案
怎么样 :
soup.findAll("div", {"class": "js-result-annonce"})
推荐阅读
- performance - 快速比较列表与自身
- python - 熊猫:将nan连续转换为空数组
- c# - 这是使用 EAV 还是不使用的好案例
- javascript - AutoNumeric - 在 Ajax 调用后设置一个值
- c++ - 使用带有#inclusion of file的宏列表生成'if ... else if ... else if ... else'序列
- c - 通过地址连接 DS18B20
- json - 如何使用 curl 命令处理来自变量的数据
- python-3.x - 将逗号添加到列表中的数字
- javascript - 仅获取 mongoose $in 运算符中的最后一个字段
- scala - Graphx:是否可以在不接收消息的情况下在每个顶点上执行程序?