docs/data.md

Data

All the data used by auritus comes from webhose.io.

Function

You can get data with the crawl_data function.

Crawl

Ideally one sets up a crawler to automatically fetch fresh data at regular intervals, you likely do not want to have to do that yourself every hour or day. Moreover this is extremely easy to do.

On your server, clone your project containing _auritus.yml somewhere in your home directory. Create an .R file and simply place the crawl_data() function in it.

library(auritus)

crawl_data()

Then in crontab (sudo crontab –e) place something like:

0 0 * * * Rscript path/to/my/script.R >/dev/null

The above will run every day at midnight. Read more about crontab or look at contab guru to have the job run at the intervals you want.



JohnCoene/auritus documentation built on March 12, 2020, 8:27 p.m.