【发布时间】:2021-10-10 13:55:00
【问题描述】:
在此处输入代码我正在对电影页面进行网络抓取,但它没有找到跨度,尽管在 xpath 中它很好并且可以识别它,它没有找到文本,当我打印它时,它打印为空。
这是代码 enter image description here
找到物品的证据 enter image description here
网址
https://www.cinecolombia.com/cali/peliculas/el-olvido-que-seremos 路径
//section@class="collapsible show-times-collapse"//div@class="show-times-group"//div[@class="show-times-group__attrs"]/span1
最后的元素是带括号的,我不认识它的堆栈跨度
xpath enter image description here
还可以尝试在答案中向我推荐的内容,但它也不起作用 enter image description here
【问题讨论】:
标签: python-3.x selenium selenium-webdriver web-scraping selenium-chromedriver