How to download a Wikipedia image for a species page

Viewed 284

I routinely want images of organisms to complement datasets and it would be great if I could pull out a species image for, say a bottlenose dolphin, given the Genus and species. I would then use this image in a K12 educational Shiny App similar to this one for students to explore the dataset. I found a way to get the URL and some page info with the WikipediR package, but I can't figure out how to extract the URL for the image in the sidebar.

require(WikipediR)
page_info("en","wikipedia",page="Tursiops truncatus")

I know there's a way (i.e. here), but I don't really understand how to make this work in R.

1 Answers
Related