Everytime I try to run this the price returns as none, why? I'm new to this.
import scrapy class AliSpiderSpider(scrapy.Spider): name = 'ali_spider' allowed_domains = ['www.aliexpress.com'] start_urls = ['https://www.aliexpress.com'] def parse(self, response): yield { 'current_price': response.xpath('//*[@id="redesign-flash-deals"]/div[2]/ul/li[1]/a/div/div[2]/span[1]/text()').get() }
2.1m questions
2.1m answers
60 comments
57.0k users