Reading HTML content every few seconds

I'm trying to write simple script, showing live new content published on a specific webpage. New content is published almost in every second, so script should read the data every few seconds. To read and parse data I'm using apricot library from the npm. The code is something like this:

Apricot = require('apricot').Apricot;

function get_data() {
    Apricot.open('http://examplesite.com', function(err, doc){
        console.log('Handling HTML doc...');
    });
}

setInterval(get_data, 5000);

It's giving the following output:

Handling HTML doc...

timers.js:223
    callback.apply(timer, args);
             ^
TypeError: Object gomez.L.m['iframe'].g2('iframe') has no method 'apply'
    at Timer.ontimeout (timers.js:223:14)

Increasing interval time doesn't solve the problem, even for 15000, still the same error occurs. I'm newbie in node.js. Any suggestions solving that problem?