The search/scrape interface lets you examine the IA collections and download what you are after (programmatically). The main function is
ia_scrape() but you can also paginate through results with the helper functions provided.
To demonstrate, let’s peruse the IA NASA collection and then grab one of the images. First, we need to search the collection then choose a target URL to retrieve and finally download it. The
identifier is the key element to ensure we can retrieve the information about a particular collection.
I just happened to know this would take me to an image. You can add the media type to the result (along with a host of other fields) to help with programmatic filtering.
The API is still not sealed in stone, so you’re encouraged to submit questions/suggestions.
The vignette is embedded below and frame-busted here. It covers a very helpful and practical use-case identified recently by an OP on StackOverflow.
There’s also a new
pkgdown-gen’d site for the package.
Issues & PRs welcome at your community coding site of choice.