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

Upgrade scrapy 2.3.0 #67

Merged
merged 11 commits into from
Sep 21, 2020
Merged

Conversation

renehernandez
Copy link
Contributor

Fix #64

As part of PR scrapy/scrapy#4254, the public behavior for the parse method was change in Spider class and subclasses. Now, the public parse method in the base Spider class returns a NotImplementedError which is the error we are running against in the DocumentationSpider implementation.

So after that PR went in scrapy, the parse logic that the DocumentationSpider relies on was moved to the new _parse method (see here. To maintain the same behavior in our end as before the scrapy upgrade to 2.3.0, I have added a parse method implementation that simply wraps a call to the _parse method in CrawlSpider, as follow:

def parse(self, response, **kwargs):
    return super()._parse(response, **kwargs)

Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

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

Thanks @renehernandez for your help!!

@curquiza curquiza merged commit d973df7 into meilisearch:master Sep 21, 2020
nflx added a commit to nflx/typesense-docsearch-scraper that referenced this pull request Sep 19, 2022
nflx added a commit to nflx/typesense-docsearch-scraper that referenced this pull request Sep 19, 2022
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.

Upgrade scrapy to v2.3.0 by removing the NotImplementedError
2 participants