How to list all pubs retrieved from search_pubs? #286
Replies: 1 comment 2 replies
-
The command next in Python returns the next element of the iterator. Just iterate using for (instead of next) and you will be able to go through the full list of elements. |
Beta Was this translation helpful? Give feedback.
-
I used
search_query = scholarly.search_pubs('"hierarchy they mean" AND social')
andsearch_query.total_results
gives 4, which is correct, there are 4 results.scholarly.pprint(next(search_query))
only gives me one result. However, how do I list the 4 results?The documentation seems to give repeated examples of only returning one pub's information. But I'm trying to use scholarly to assist in a very large literature review--hundreds of results for specific searches. I was using Publish or Perish for this, but with Google Scholar it only returns the truncated results, whereas Scholarly seems to dig into the javascript control which returns the untruncated results (journal title and authors).
Any help would be appreciated. I'm very interested in whether Scholarly can be a powerful tool for large literature reviews.
Beta Was this translation helpful? Give feedback.
All reactions