Joined November 2015
·

Daniel López

Malaga
·
·

I have a question about this:

Can I build my nodejs application using this structure without any unknown considerations? This application will be a "daemon" that scrapes webpages every n b-hours or n-days.

try {
        fiber(function() {       

                console.log("begin");

                while(flag)
                {
                        // Many scraping actions to many webpages using await object
                        // Sleep
                }
                console.log("end");       

        });
} catch(err) {
        //TODO Handle error
}

Man, finally I found an article where this concept is explained fast and good. I am working with zombie.js to build a scraper and I need to synchronize the actions.Thank you.

Achievements
1 Karma
0 Total ProTip Views