Just another my very own function Mainly used for getting The Four Price. Run in the background on price, check cache, scrape if necessary, save if nothing goes wrong. Run while halt the request on flight, get the lowest cell, retrieve data from db, merge it.
[init description]
Parameters
args: Object
, Custom options.
setting options, using one arguments: an object with key-value pair, or two arguments, with the first as key and second as value
alias for setOptions
setting mode before running scrape price
Parameters
mode: string
, Passengers count e.g: '100', '101', '110'
preparing data for scrape function arguments
Returns: Object
, Data formatted for parameter in scraper function
preparing querystring for request function
Returns: String
, String formatted for parameter in request function
Get cache data from db
Returns: Object
, Data price for current dt