scrapy python Request is not defined

python, python-2.7, scrapy

Solution

Short answer: `from scrapy.http.request import Request`

Extended answer: read the docs.

Problem

i found an answer here: code ``` 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?

Original source