Q:

"scrapy shell" pass cookies to fetch

On command line: scrapy shell

from scrapy import Request
req = Request('yoururl.com', cookies={"header1":"value1"})
fetch(req)
-2

Tags

New to Communities?

Join the community