From 838950b844b45bf38a60664bffe95bbc1eac9639 Mon Sep 17 00:00:00 2001 From: Kristina Hanspers Date: Mon, 6 Jan 2025 15:25:28 -0800 Subject: [PATCH] Update fetch_pmc.R switch to EuropePMC --- scripts/fetch_pmc.R | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/fetch_pmc.R b/scripts/fetch_pmc.R index 526cb2114..eb4e5e00f 100644 --- a/scripts/fetch_pmc.R +++ b/scripts/fetch_pmc.R @@ -232,12 +232,10 @@ if(!length(image_filename) > 0){ write("---", yml.path, append = T) ## download image from PMC, politely - # img.from.path = paste0("https://www.ncbi.nlm.nih.gov/pmc/articles/", - # article.data$pmcid, - # "/bin/",article.data$image_filename) + img.from.path = paste0("https://europepmc.org/articles/", + article.data$pmcid, + "/bin/",article.data$image_filename) - img.from.path = paste0("https://www.ncbi.nlm.nih.gov/", - article.data$figure_link) img.to.path = file.path('figures',paste(fn, "jpg", sep = ".")) headers = c( `user-agent` = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36'