Description Usage Arguments Value IP blocking
This is a generic function to download captchas from any
webssite given a captcha's URL. download_captcha_*()
are aliases for
some known captchas of public services in Brazil.
1 2 3 4 5 6 7 8 | download_captcha(
url,
n = 1,
path = ".",
secure = FALSE,
timeout = 3,
ext = ".jpeg"
)
|
url |
URL from which to download captcha or the name of a known source
( |
n |
Total number of captchas to download |
path |
Folder where to save downloaded captchas |
secure |
Whether or not to use |
timeout |
Timeout for captcha download (passed on to |
ext |
Default image extension if not able to extract it automatically |
A vector with the paths to the downloaded files
All downloads have a timeout of three seconds to run.
If the website you are accessing blocks IP after multiple calls, consider
creating a loop an using base::Sys.sleep()
to wait for new calls.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.