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

Update the scrapy-poet config #28

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Gallaecio
Copy link
Contributor

I did not detect any issue or even tested the effect of these settings (i.e. if unsure, maybe we should test them before merging), but these settings are defined in the configuration docs of scrapy-poet and they do not seem to be configured by any add-on (which makes sense, they should probably be set by a scrapy-poet add-on).

SPIDER_MIDDLEWARES = {
"scrapy_poet.RetryMiddleware": 275,
}
REQUEST_FINGERPRINTER_CLASS = "scrapy_poet.ScrapyPoetRequestFingerprinter"
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Working on a test for it, I found out it was working as expected before this change. It’s because the scrapy-zyte-api fingerprinter already uses the scrapy-poet one as fallback if scrapy-poet is installed. So this line is unnecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On a related note, the scrapy-zyte-api add-on also configures the injection middleware,

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