Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve cookie handling #5431

Open
Gallaecio opened this issue Mar 1, 2022 · 9 comments
Open

Improve cookie handling #5431

Gallaecio opened this issue Mar 1, 2022 · 9 comments

Comments

@Gallaecio
Copy link
Member

Gallaecio commented Mar 1, 2022

There are different aspects of cookie handling in Scrapy that we should improve. This issue aims to centralize a set of improvements that could be addressed as part of a Google Summer of Code project.

Note: A Google Summer of Code project around this idea does not need to cover everything here. Choose a subset of the work that fits the time you plan to spend on Google Summer of Code and your estimations for the work. It is better to overestimate the time it will take you to complete tasks, and to have stretch goals to spend the extra time after project completion, than to underestimate and fail to achieve your goals on time.

@soma2000-lang
Copy link

I am looking forward to participate in gsoc 22 .can i work on this issue @Gallaecio

@Gallaecio
Copy link
Member Author

Sounds great! Make sure you check out the links in #5408

@soma2000-lang
Copy link

Ok

@OrestisKan
Copy link

hey @Gallaecio Is it okay If I do part of it (not for GSoC)? I would like to work on Providing a user-friendly API to interact with cookiejars.

@Gallaecio
Copy link
Member Author

@OrestisKan Sounds great.

@atatabitovska
Copy link

@Gallaecio Hello! a colleague and I are interested in working on allowing cookie storage, however we would need a bit more clarification what this entails. Specifically, the documentation at https://github.com/scrapedia/scrapy-cookies/blob/master/docs/topics/settings.rst#cookies_storage suggests cookie storage is indeed available, and we were wondering what could our contribution look like?

@Gallaecio
Copy link
Member Author

@atatabitovska That documentation link you provide is not for Scrapy itself, but for a third-party plugin, so Scrapy itself does not support cookie storage.

I would usually not suggest reimplementing in Scrapy something that can be handled with a plugin. However, the plugin seems unmaintained, and I think basic cookie storage capabilities may be worth maintaining in upstream Scrapy. And I am slightly worried that improvements to cookie handling may break it directly or indirectly.

@VolVox99
Copy link
Contributor

VolVox99 commented Apr 19, 2022

Hi @Gallaecio as part of GSOC I'm going to be implementing the following:

  • Let the Cookie header of a request be processed just the same as the cookies parameter of Request.
  • Allow users to decide, for a request and its response, any combination...

I will email you my proposal document tommorow. I know I am late, but I am determined to be able to contribute. If the deadline for GSOC passes I can do it on my own.

I have made a trivial contribution before: #5442
The guidelines stipulate that I need a prior pull request. Is this satisfactory? Since I am low on time (only one day left). If not I can try fixing another issue tommorow, but I doubt it will get merged in time.

@Gallaecio
Copy link
Member Author

The guidelines stipulate that I need a prior pull request. Is this satisfactory?

It is enough to meet that requirement, yes (and, in any case, getting the pre-application pull request merged is not a requirement).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants