我是硒新手,希望通过我的课程链接降低价格并提供结束时间。我该怎么做
价格和课程结束时间将动态加载到网站。我知道如何从网站中提取简单内容,但不知道如何提取动态内容
我已尝试使用Parsel库+Seleminium库,但返回空字符串。因为当我在手机中查看source网站时,source中没有显示价格。但当我点击chrome或firefox的inspect元素选项时。价格在跨度标签内提供。表示在浏览器上呈现页面时,将动态加载价格。如何在Selenium中执行此操作
以下是我的课程链接示例:
https://www.udemy.com/course/data-science-deep-learning-in-python/
在您的环境中已经安装了所有依赖项的情况下,此代码应该可以工作:
相关问题 更多 >
编程相关推荐