knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Batch download paper with aria2 and httr.

you need to download aria2, and add aria2 path to your system environment variables.

Get doi

If you want to download paper use that package, you need to get the corresponding DOI. First of all, you should be confirm that your IP have the right to download that paper. And if you want to batch download paper, I suggest you get the DOIs from Web Of Science.

Select suitable srcFUN according to paper database.

If this package have not yet, you can consider to extend the srcFUN, or contact me directly.

Their are two way, we provide to download paper.
- 1.aria2, which is same like wget, but can download parallel.

Examples

library(Ipaper)
# download_httr
download_httr("10.1175%2FJHM-D-15-0157.1", journal = '.', srcFUN = src_AMS)
# download_aria2
DOIs <- rep("10.1175%2FJHM-D-15-0157.1", 4) #test aria2 parallel download
download_aria2(DOIs, journal = "JHM", srcFUN = src_AMS, n = 4, Rshell = TRUE)


kongdd/rscihub documentation built on May 27, 2021, 7:15 p.m.