Simple access to Google Scholar authors and citations
Project description
scholarly
scholarly is a module that allows you to retrieve author and publication information from Google Scholar in a friendly, Pythonic way.
Check the documentation for a complete reference!
Installation
Use pip to install from pypi:
pip3 install scholarly
or pip to install from github:
pip3 install -U git+https://github.com/OrganicIrradiation/scholarly.git
Usage
Because scholarly does not use an official API, no key is required. Simply:
from scholarly import scholarly
print(next(scholarly.search_author('Steven A. Cholewiak')))
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 scholarly import scholarly
# Retrieve the author's data, fill-in, and print
search_query = scholarly.search_author('Steven A Cholewiak')
author = next(search_query).fill()
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 = author.publications[0].fill()
print(pub)
# Which papers cited that publication?
print([citation.bib['title'] for citation in pub.get_citedby()])
Tests
To run tests execute the test_module.py file as:
python3 test_module
or
python3 -m unittest -v test_module.py
Build Docs
To build the documentation execute the make file as:
make html
License
The original code that this project was forked from was released by Luciano Bello under a WTFPL license. In keeping with this mentality, all code is released under the Unlicense.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scholarly-0.3.1.tar.gz.
File metadata
- Download URL: scholarly-0.3.1.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9705953f89b324bf5db2abe3fecd5965d10aa552f172645874c6f46b34a784e1
|
|
| MD5 |
3c6c2f34404b598336e908a46dfc6178
|
|
| BLAKE2b-256 |
69e5c19743e5c9b875a0e2fcac440f5a5591d540ebaf9a6a60a34d775f510ac2
|
File details
Details for the file scholarly-0.3.1-py3-none-any.whl.
File metadata
- Download URL: scholarly-0.3.1-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48acd1ee7ec6433337eeb3c1c14833c29c9be9cf4bf145816707e990d7dfb775
|
|
| MD5 |
b9ac65a6f4580585771a2d7953d42429
|
|
| BLAKE2b-256 |
efc9dec30388e02832f20b5acc9390af465c4f25105a306e6cd685a589ba6b98
|