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.29k stars 292 forks source link

Fill information of a publication without the abstract #539

Open plu-project opened 4 weeks ago

plu-project commented 4 weeks ago

What feature would you like to request?

from scholarly import scholarly
search_query = scholarly.search_author('...')
author = scholarly.fill(next(search_query), sections=["publications"])
pub = author['publications'][0]
pub = scholarly.fill(pub, sections=["no_abstract"])

As mentioned in another issue that Google scholar might not fully show the abstract of the desired publication, it might be good to give an option to not to output the abstract at all.

Is your feature request related to a problem? Please describe. No.

Describe the solution you'd like Maybe an option, such as "no_abstract", can be added to the sections parameter of the fill function when a Publication object is passed to the function, so nothing changes in the function header. The item for the abstract in the returned Publication objects will be an empty string.

Describe alternatives you've considered No idea...

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.