我还在学习用python编写代码。我真的需要帮助从这个网站上删除元素:
https://www.tokopedia.com/craftdale/crossback-apron-hijau-army?src=topads
我想从Review(乌拉桑)容器中获取审核数据(审核时间)
这是网站上的HTML
<p disabled="" data-testid="txtDateGivenReviewFilter0" class="css-oals0c-unf-heading e1qvo2ff8">1 bulan lalu</p>
我已尝试使用此代码获取元素
review = soup.findAll('p',class_='css-oals0c-unf-heading e1qvo2ff8')
或
review= soup.findAll('p',id_='txtDateGivenReviewFilter0')
但结果我只得到了空数据 enter image description here
有人能解决这个问题吗?多谢各位
分析网站时,网站会调用ajax来检索网站中的不同信息。为了获得审查信息,它使用json负载对特定端点进行ajax调用
上面的脚本将审查信息作为json保存到一个文件中
为了得到评分
相关问题 更多 >
编程相关推荐