Look at the cookies attribute of the request/response instance:
https://scrapy.readthedocs.org/en/latest/topics/request-response.html
Just to clarify on the previous alternative approach:
A cookie value (all header values) may be specified several times. That's
what the headers.getlist() method does here, using headers as a dict will
get you the last index of the array of specified values for this header.
On Sunday, 16 February 2014 20:45:05 UTC+2, Capi Etheriel wrote:
>
> I think that would be request.headers.getlist('Cookie')
>
> Em sexta-feira, 14 de fevereiro de 2014 06h39min08s UTC-2, AnCing Huang
> escreveu:
>>
>> is there any way to get cookie value from response or request ? I
>> couldn't find a naive way to do it.
>>
>
--
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 http://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/groups/opt_out.