A package based on SciHub and Google Scholar that can download articles given DOI, website address or keywords.
Project description
getarticle
Description
getarticle
is a package based on SciHub and Google Scholar that can download articles given DOI, website address or keywords.
Install
Using pip
to install:
# for latest version (recommended)
pip install git+https://github.com/HTian1997/getarticle.git
# for last release
pip install getarticle
Setup
pip install -r requirements.txt
Features & Usage
- Initialization
from getarticle import GetArticle
ga = GetArticle()
- Download a single article given DOI or website address.
ga.input_article("10.1126/science.abc7424")
ga.download()
Notes:
- Once downloaded, all stored articles will be cleared;
- For
download
function,direction
argument is the current location by default; - Downloaded article is named as either "article title.pdf" if successfull or "year-month-day-hour-minute-second.pdf".
- Download multiple articles.
ga.input_article("https://www.nature.com/articles/s41594-020-0468-7#article-info")
ga.input_article("10.1038/s41893-020-0581-y")
ga.download()
Notes:
- Repeatedly using
article
function can save multiple articles. getarticle
will not save & download duplicate articles;
- Download related articles given keywords. Keywords can be article names, research fields or author names.
ga.search("Deep Dive into Machine Learning Models for Protein Engineering")
ga.search("SARS, Computation", num_of_page=2)
ga.search("Roberta Croce")
ga.download()
Notes:
num_of_page
is the corresponding number of page in Google Scholar.num_of_page
is 1 by default.
- Show currently stored articles / delete article by index.
ga.cur_articles()
ga.remove_article()
License
MIT
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
getarticle-0.0.3.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for getarticle-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 649544a4097195fd342c03416a5b81b7637b92a6074ac2efe8d1a4f71c94d471 |
|
MD5 | 4d2dac6335f75a1d25ddd942104c67a8 |
|
BLAKE2b-256 | fa60f01d9508f2240c129a598fe5ed7d8f61b8532b29d6a88e412e8b9b6fc98e |