Description Usage Arguments Value Examples
Downloads one or more CDC URLs as html files with a specific wait-time to avoid IP address blocking.
1 | save_codes(urls, browser = "firefox")
|
urls |
One or more URLs corresponding to pages of CDC search results. |
browser |
The name of the browser used for scraping. Default is 'firefox'. |
A list of objects containing the HTML codes for each file. Text files containing the code are also saved to the working directory.
1 2 3 4 | urls <- c("https://search.cdc.gov/search/index.html?all=disease%20spread&none=animal%20fish&exact=corona%20virus&any=pandemic%20global&date1=01%2F01%2F1980&date2=10%2F11%2F2020&dpage=1#results",
"https://search.cdc.gov/search/index.html?all=disease%20spread&none=animal%20fish&exact=corona%20virus&any=pandemic%20global&date1=01%2F01%2F1980&date2=10%2F11%2F2020&dpage=2#results",
"https://search.cdc.gov/search/index.html?all=disease%20spread&none=animal%20fish&exact=corona%20virus&any=pandemic%20global&date1=01%2F01%2F1980&date2=10%2F11%2F2020&dpage=3#results")
codes <- save_codes(urls);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.