Skip to content

R function that saves the main image associated with any Wikipedia page

License

Notifications You must be signed in to change notification settings

drwilkins/getwikipic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getwikipic

#R function that saves the main image associated with any Wikipedia page

#Takes 3 inputs #titles= vector of species name(s) #res= desired width in pixels (220 px thumbnail by default) #savedest= save destination (w terminal '/'); wd by default

#You only have to provide titles (as a concatenated vector or just a single "title" )

#usage:

getwikipic("MLK")

dest<-("pics/")#if you wanna save to a directory one level up from the working directory

getwikipic(c("Tursiops truncatus","Homo habilis","Myrmecobius fasciatus"),1024,dest) #save 3 higher quality jpegs in the /pics directory

About

R function that saves the main image associated with any Wikipedia page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages