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

fix(spiders): use date filters as part of file names #1026

Merged
merged 11 commits into from
Sep 20, 2023

Conversation

yolile
Copy link
Member

@yolile yolile commented Sep 19, 2023

closes #1025

kingfisher_scrapy/spiders/australia.py Outdated Show resolved Hide resolved
kingfisher_scrapy/spiders/australia.py Outdated Show resolved Hide resolved
kingfisher_scrapy/spiders/colombia_api.py Outdated Show resolved Hide resolved
kingfisher_scrapy/spiders/colombia_api.py Outdated Show resolved Hide resolved
kingfisher_scrapy/spiders/kyrgyzstan.py Show resolved Hide resolved
kingfisher_scrapy/spiders/portugal_base.py Show resolved Hide resolved
Copy link
Member

@jpmckinney jpmckinney left a comment

Choose a reason for hiding this comment

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

Two comments. Happy to merge once resolved.

kingfisher_scrapy/spiders/portugal_base.py Outdated Show resolved Hide resolved

yield scrapy.Request(url, meta={'file_name': 'page-1.json'}, callback=self.parse_page)
yield scrapy.Request(url, meta={'file_name': f'{until_date}.json'}) # reverse chronological order
Copy link
Member

Choose a reason for hiding this comment

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

callback=self.parse_page got deleted?

yolile and others added 2 commits September 19, 2023 23:17
Co-authored-by: James McKinney <26463+jpmckinney@users.noreply.github.com>
@yolile yolile merged commit e45e405 into main Sep 20, 2023
7 checks passed
@yolile yolile deleted the fix-incremental-file-names branch September 20, 2023 03:21
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.

Incremental updates with database store
2 participants