【发布时间】:2019-06-03 14:53:32
【问题描述】:
您好,我只是想在这个网站上抓取“标题”和“发布日期”,我确信我使用的是正确的 response.xpath,但它总是没有。
response.xpath("//h1[@class = 'lede-text-v2__hed']").extract_first()
response.xpath("//meta[@property = 'og:title']/@content").extract_first()
两个都拿不到标题
也在发布日期
response.xpath("//time[@class = 'article-timestamp']/@datetime").extract_first()
什么都没有,请问有什么办法吗?
这是网址
https://www.bloomberg.com/news/articles/2019-05-30/tesla-dealt-another-blow-as-barclays-sees-it-as-niche-carmaker
谢谢!
【问题讨论】: