Description Usage Arguments Examples
Generate a cron job, and pass it to crontab. It will automatically scape flight data and save them to a local SQLite database file.
1 2 3 |
origin |
The origin place, can be country, city, airport, in Skyscanner code. |
destination |
The destination, can be country, city, airport, in Skyscanner code. |
startDate |
The outbound date. Format 'yyyy-mm-dd'. |
returnDate |
The return date. Format 'yyyy-mm-dd'. Use NULL for oneway trip. |
key |
API key. Default using the key in global options, see |
path |
Where to put the log, defaults is the current working directory. |
frequency |
A character string equal to one of |
at |
The actual time of day at which to execute the command. When unspecified, we default to
|
id |
An id, or name, to give to the cronjob task, for easier revision in the future. |
... |
Other arguments. |
1 2 3 4 5 6 7 8 | ## Not run:
apiSetKey("YOUR_API_KEY")
cron_create("SFO", "LHR", "2019-07-01", frequency = "daily", at = "3AM")
cron_create("SFO", "LHR", "2019-07-01", frequency = "hourly")
cron_create("SFO", "LHR", "2019-07-01", frequency = "minutely")
cron_create("SFO", "LHR", "2019-07-01", frequency = "0 */2 * * *") # every 2 hours
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.