Science museum script needs to implement get_should_continue
to stop ingestion
#1363
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
good first issue
New-contributor friendly
help wanted
Open to participation from the community
🟧 priority: high
Stalls work on the project or its dependents
Description
The ingestion for Science museum doesn't stop when the last page is reached, which causes an error due to response 400 for non-existent page.
Reproduction
Solution
Each JSON response has a
links
dictionary withnext
property in it. We should stop the ingestion whennext
isnull
by overriding theget_should_continue
function:Resolution
The text was updated successfully, but these errors were encountered: