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

HubstorageDownloaderMiddleware: centralized request fingerprinting #87

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

Gallaecio
Copy link
Member

sh_scrapy/middlewares.py Outdated Show resolved Hide resolved
Copy link
Member

@kmike kmike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How have you checked that it works @Gallaecio?

@Gallaecio
Copy link
Member Author

I just run jobs with this branch installed, with Scrapy 2.12. I might have only tested that the removal of the import does not break things anymore, I did not actually check that the component was running.

The code is almost identical to the one in the extension, though, with the exception of not allowing a parameterless __init__, which I am not sure we need to support.

Co-authored-by: Mikhail Korobov <[email protected]>
@elacuesta elacuesta merged commit e0cead1 into scrapinghub:master Nov 27, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants