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

Add in PDF link in publication fill #536

Open Luen opened 2 months ago

Luen commented 2 months ago

Hi team,

I noticed that Scholarly doesn't output the PDF link (only pub_url), so I'm attempting to add this feature.

Description

Edited PublicationParser() fill() in publication_parser.py to add HTML parsing for the pdf link.

Example publication with pdf link: https://scholar.google.com/citations?view_op=view_citation&hl=en&user=ynWS968AAAAJ&citation_for_view=ynWS968AAAAJ:8xutWZnSdmoC

Screenshot of Google Scholar publication with PDF link

Checklist