class MySpider(scrapy.Spider):
    name = 'redditscraper'
allowed_domains = ['reddit.com', 'imgur.com']
start_urls = ['https://www.reddit.com/r/nsfw']

def request(self, url, callback):
    """
         wrapper for scrapy.request
        """
request = scrapy.Request(url=url, callback=callback)
request.cookies['over18'] = 1
request.headers['User-Agent'] = (
    """Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36"""
    )
return request
Как отправить куки с помощью запросов CrawlSpider?