-
-
Save larsvilhuber/27a1d2d8c76aba5a981cd5591fe343f8 to your computer and use it in GitHub Desktop.
Adding an online Zotero group to any application as a bibtex file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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