Description Usage Arguments Examples
View source: R/comic_scraper.R
Download xkcd comics based upon the comic id found from the xkcd site. Use in conjunction with purrr::walk to webscrape many comics
1 | download_xkcd_comic(comic_id, wait_seconds = 0, save_dir = "xkcd_comics")
|
comic_id |
numeric ID number of the comic from xkcd |
wait_seconds |
interger in seconds to wait before downloading the comic |
save_dir |
string of where to save the downloaded comic |
1 2 3 | download_xkcd_comic(comic_id = 1234, wait_seconds = 5, save_dir = 'xkcd_comics')
walk(1:1000, ~ download_xkcd_comic(comic_id = .x, wait_seconds = 5, save_dir = 'xkcd_comics'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.