i found an answer here:
for site in sites:
Link = site.xpath('a/@href').extract()
CompleteLink = urlparse.urljoin(response.url, Link)
yield Request(Link, callback = self.parseOneCar)
I got this exception
exceptions.NameError: global name 'Request' is not defined
what should I import please?
Short answer: from scrapy.http.request import Request
Extended answer: read the docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With