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

scholarly.search_pubs(query) \n pprint(query) is parsings and returning only 1st result of the page #504

Closed
amani-acog opened this issue Jun 1, 2023 · 1 comment

Comments

@amani-acog
Copy link

search_query = scholarly.search_pubs(query)
scholarly.pprint(next(search_query))

I am using above method to get the data of research publications it is parsing and returning only 1st result of the page

@amani-acog amani-acog added the bug label Jun 1, 2023
@arunkannawadi
Copy link
Collaborator

Yes, that is the intended output. For the next result, you need to run the second line again, especially the next call. Alternatively (and not recommended), you can call list(search_query), but if there are many many pages and you don't need them all, you'll likely hit an error due to Google Scholar blocking your search.

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

No branches or pull requests

2 participants