The general scrape
function is modified to scrape using the special parameters that ChemiDPlus requires to avoid errors.
1 2 3 4 5 6 | scrape_cdp(
x,
options = c("RECOVER", "NOERROR", "NOBLANKS", "HUGE"),
sleep_time = 3,
verbose = TRUE
)
|
x |
A string, a connection, or a raw vector. A string can be either a path, a url or literal xml. Urls will
be converted into connections either using If a connection, the complete connection is read into a raw vector before being parsed. |
options |
Set parsing options for the libxml2 parser. Zero or more of
|
sleep_time |
Time in seconds for the system to sleep before each scrape with |
verbose |
When reading from a slow connection, this prints some output on every iteration so you know its working. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.