ropensci / spocc

Species occurrence data toolkit for R
https://docs.ropensci.org/spocc
Other
115 stars 27 forks source link

maybe return photos in inat data? #214

Closed sckott closed 5 years ago

sckott commented 5 years ago

via https://discuss.ropensci.org/t/is-it-possible-to-download-inaturalist-images-with-spocc-rinat/1600

keatonwilson commented 5 years ago

This would be amazing - an incredibly useful addition to a number of projects our research group is working on (and likely others as well!).

sckott commented 5 years ago

thanks for the bump on this @keatonwilson can you try it and let me know what you think?

remotes::install_github("ropensci/spocc@sidecar")
# reload R / i.e., quit, then restart R
library(spocc)
res <- occ(query = 'Danaus plexippus', from = 'inat', limit = 50)
data.table::rbindlist(res$inat$data$Danaus_plexippus$photos)
keatonwilson commented 5 years ago

Just got it working! Super useful - would be easy to bulk-download photos via R or command line for further analysis. This is a great addition - thank you!

sckott commented 5 years ago

great, glad it works. will be merged into master soon