Skip to content

Commit

Permalink
Update fetch_figures.R
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderPico authored Mar 26, 2023
1 parent 5822d4c commit 73261e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fetch_figures.R
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ for (i in 1:page.count){
img.from.path = paste0("https://www.ncbi.nlm.nih.gov/pmc/articles/",
article.data$pmcid,
"/bin/",article.data$image_filename)
img.to.path = file.path('figures',paste(fn, "jpg", sep = "."))
img.to.path = file.path('figures',paste(article.data$figid, "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'
)
Expand Down

0 comments on commit 73261e2

Please sign in to comment.