Scrapy, like any other web browser, receives and stores cookies sent by servers, and then sends them back on subsequent requests.