Hey, I'm not sure how you could do it through the command line. But you can
do it inside the scrapy shell:
>>> req = scrapy.Request('http://example.com', headers={'Referer': 'bla
bla'})
>>> fetch(req)
On Tue, May 3, 2016 at 2:33 PM, Twirl <[email protected]> wrote:
> scrapy shell -s USER_AGENT='custom user agent' 'http://www.example.com'
> works for setting the USER_AGENT but how do you set the headers?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "scrapy-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/scrapy-users.
> For more options, visit https://groups.google.com/d/optout.
>
--
[image: Scrapinghub] <https://scrapinghub.com>
Valdir Stumm Junior
Developer Evangelist, Scrapinghub
[image: Skype] stummjr
[image: Twitter] <https://twitter.com/stummjr> [image: Github]
<https://github.com/stummjr>
[image: Twitter] <https://twitter.com/scrapinghub> [image: LinkedIn]
<https://www.linkedin.com/company/scrapinghub> [image: Github]
<https://github.com/scrapinghub>
*We turn web content into structured data. Lead maintainers of Scrapy
<http://scrapy.org>.*
--
You received this message because you are subscribed to the Google Groups
"scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.