Issue
https://www.maplesford.com/new-Warsaw-2022-Ford-Escape-SEL-1FMCU9H97NUB34573
body_style = response.xpath(".//div[@class='vdp-info-media vdp-body-style']/text()").get()
My issue is I can't seem to drop the levels down to pull the body style. stuck at /text() don't know how to pull the body style.
Solution
You're looking for:
body_style = response.xpath("//li[@class='vdp-info media vdp-body-style']//h3/text()").get()
Check Scrapy docs here
Answered By - Barry the Platipus
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.