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
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ verify_ssl = true
name = "pypi"

[packages]
Scrapy = "==2.2.1"
Scrapy = "==2.3.0"
selenium = "==3.141.0"
pytest = "==6.0.0"
meilisearch = "==0.12.3"
Expand Down
30 changes: 23 additions & 7 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion scraper/src/documentation_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ def start_requests(self):
},
errback=self.errback_alternative_link)

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

def add_records(self, response, from_sitemap):
records = self.strategy.get_records_from_response(response)
self.meilisearch_helper.add_records(records, response.url, from_sitemap)
Expand Down Expand Up @@ -176,7 +179,6 @@ def parse_from_start_url(self, response):

if self.is_rules_compliant(response):
self.add_records(response, from_sitemap=False)

else:
print("\033[94m> Ignored: from start url\033[0m " + response.url)

Expand Down