Description Usage Arguments Details See Also Examples
This script waits a random number of seconds, then scraps the most recent comext folder name and the name of the last file in that folder. The ouput is written to a log file.
| 1 | crontime(logfile, randomsleeptime)
 | 
| logfile | character path to a log file | 
| randomsleeptime | integer maximum number of second to wait before checking the comext website. | 
To run this script every day at 3:00 am, edit the crontab file
    sudo vim /etc/crontab
and enter the following command:
    0 2 * * *    debian Rscript -e "tradeharvester::crontime(logfile = '/mnt/sdb/public/log/crontime.txt', randomsleeptime = 3600)"
The log file can be located in a publicly accessible web folder.
harvest, the main harvesting function run as a cron job.
| 1 2 3 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.