A collection of API clients that I have built for various projects, but not really needed in as an R or Python package.
Note:
These scripts are not affiliated with any of the following projects in any capacity nor are they intended as the official method. I built these for specific projects or workflows to help manage data, but I never intended them to go further than that. These scripts could be useful — or a starting point — for others working on similar projects.
The following sections provide an overview of the available scripts.
Download a release from a publically available GitHub repository.
import ghReleaseDownloader
gh = ghReleaseDownloader(owner = "<github_user>", repo = "<github_user_repo>")
gh.listReleases()
gh.downloadRelease(outDir = 'downloads/', tag_name = 'latest')
See file python/ghReleaseDownloader.py
Methods for downloading and processing grid.ac releases.
# download the latest release
g <- grid$new()
g$listReleases()
g$downloadRelease()
g$print()
saveRDS(g$data, "grid_data.RDS")
See file R/grid_ac.R
A mini API client for retrieving publication metadata from Pubmed Api.
# find publications with the term "R Core Team" (reference, author, etc.) that were published in 2021
p <- pubmed$new()
p$pubmed("(\"R Core Team\") AND ((\"2021\"[Date - Publication]))")
p$print()
See file R/pubmed.R