scholarly-python-package / scholarly

Retrieve author and publication information from Google Scholar in a friendly, Pythonic way without having to worry about CAPTCHAs!
https://scholarly.readthedocs.io/
The Unlicense
1.36k stars 298 forks source link

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

Closed amani-acog closed 1 year ago

amani-acog commented 1 year ago

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

arunkannawadi commented 1 year ago

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.