Skip to content

Instantly share code, notes, and snippets.

@larsvilhuber
Last active June 22, 2020 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save larsvilhuber/27a1d2d8c76aba5a981cd5591fe343f8 to your computer and use it in GitHub Desktop.
Save larsvilhuber/27a1d2d8c76aba5a981cd5591fe343f8 to your computer and use it in GitHub Desktop.
Adding an online Zotero group to any application as a bibtex file
zotero.grp <- 2484699
zotero.api <- "https://api.zotero.org/groups/"
zotero.url.base <- "https://www.zotero.org/groups/"
zotero.url.suffix <- "covid-19-econ"
zotero.url <- paste0(zotero.url.base,zotero.grp,"/",zotero.url.suffix,"/library")
download.file(paste0(zotero.api,zotero.grp,"/items?format=bibtex&limit=150"),"from_zotero.bib")
https://api.zotero.org/groups/(GROUP-ID)/items?format=bibtex&limit=150
where (GROUP-ID) is the numeric identifier associated with your group library.
This will download a BIB file. Other formats, see the Zotero API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment