-
Notifications
You must be signed in to change notification settings - Fork 295
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
Can the search_... functions return a count of the results? #524
Labels
Comments
Some Lines 735 to 750 in 9269ff3
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What feature would you like to request?
I would find it really helpful if I could programmatically get the number of Google Scholar results on a subject, given a keyword.
Is your feature request related to a problem? Please describe.
I am working on an inventory management project where I have to find the number of academic publications on a given item. The specific titles, authors, institutions are not immediately relevant. I came across scholarly, and it offers a very nice keyword search function, but it returns a generator of author objects with no option to just get the number of hits.
Describe the solution you'd like
Ideally, I would like to be able to run something like
n_hits= scholarly.search_keyword('Haptics', num_authors=True)
, and haven_hits
be an int corresponding to the number of authors in the generator.Describe alternatives you've considered
Another good implementation would be something like:
search_query = scholarly.search_keyword('Haptics') print(search_query.n_results)
Do you plan on contributing?
Your response below will clarify if this is something that the maintainers can expect you to work on or not.
Additional context
In _navigator.py, there is a logger that keeps track of number of authors found, and when author pages end. If it could return this info somehow, that would be great too.
The text was updated successfully, but these errors were encountered: