Where does scholarly increment to the next page of search results (in a pubs search)? #429
-
Where does this package control going from page to page of results? I've been chasing the code up and down and I can't figure it out. When calling The reason I want to know, besides understanding the package overall, is that I would like to script a wait-time between page requests (and later, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi Stanley, look at this implementation of |
Beta Was this translation helpful? Give feedback.
Hi Stanley, look at this implementation of
__next__
here: https://github.com/scholarly-python-package/scholarly/blob/main/scholarly/publication_parser.py#L80-L93 The iterator is not user-facing, but manages fetching results from multiple pages. You might want to add a delay in theelif
block there. Overall, I think that'd be a good feature to have, so feel free to submit a pull request with the delay that can be specified by the user.