Quickstart
Note
scholarly2 is a fork of scholarly <https://github.com/scholarly-python-package/scholarly>. Many major updates and fixes have been made to the original package.
Installation
Use pip to install from PyPI:
pip3 install scholarly2
or install from GitHub:
pip install git+https://github.com/ma-ji/scholarly2.git
Usage
Because scholarly2 does not use an official API, no key is required.
Simply:
from scholarly2 import scholarly
print(scholarly.search_author_id('4bahYMkAAAAJ'))
Example
Here’s a quick example demonstrating how to retrieve an author’s profile then retrieve the titles of the papers that cite his most popular (cited) paper.
from scholarly2 import scholarly
# Retrieve the author's data, fill-in, and print
author = scholarly.search_author_id('4bahYMkAAAAJ')
author = scholarly.fill(author)
print(author)
# Print the titles of the author's publications
print([pub['bib']['title'] for pub in author['publications']])
# Take a closer look at the first publication
pub = scholarly.fill(author['publications'][0])
print(pub)
# Which papers cited that publication?
print([citation['bib']['title'] for citation in scholarly.citedby(pub)])
Availability notes
The following methods work well with anonymous access:
search_author_idsearch_pubssearch_single_pubsearch_citedbyfillcitedbybibtexget_journal_categories/get_journals/save_journals_csvdownload_mandates_csv
The following methods use Google Scholar Citations author-discovery pages and Google may gate them behind sign-in for anonymous sessions:
search_keywordsearch_keywordssearch_author_custom_urlsearch_orgsearch_author_by_organization