Skip to main content

getarticle is a package based on SciHub and Google Scholar that can download articles based on DOI or website address. It can also download related articles given keywords.

Project description

getarticle Python

Description

getarticle is a package based on SciHub and Google Scholar that can download articles based on DOI or website address. It can also download related articles given keywords.

Setup

pip install -r requirements.txt

Features & Usage

  1. Initialization
from getarticle import GetArticle

gp = GetArticle()
  1. Download single article given DOI or website address.
# set single article with doi or address
gp.article("10.1126/science.abc7424")
gp.article("https://science.sciencemag.org/content/early/2020/06/15/science.abc7424.abstract")
gp.download()

Notes:

  • getarticle will not download duplicate articles;
  • Once downloaded, all stored DOI will be cleared;
  • For download function, direction argument is the current location by default;
  • Downloaded article is named as "year-month-day-hour-minute-second.pdf".
  1. Download related articles given keywords. Keywords can be article names, research fields or author names.
gp.search("Deep Dive into Machine Learning Models for Protein Engineering")
gp.search("SARS, Computation", num_of_page=2)
gp.search("Roberta Croce")
gp.download()

Notes:

  • num_of_page is the corresponding number of page in Google Scholar.
  • num_of_pageis 1 by default.

License

MIT

Project details


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.1.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

getarticle-0.0.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page