index.js
function crawlHrefs(result, $, endCallback) {

    log.debug({"url" : result.url, "step" : "analyzeHTML", "message" : "CrawlHrefs"});
    async.each($('a'), function(a, callback) {
        crawlHref($, result, a, callback);
    }, endCallback);

}
function crawlHrefs(result, $, endCallback) {

    log.debug({"url" : result.url, "step" : "analyzeHTML", "message" : "CrawlHrefs"});
    async.each($('a'), function(a, callback) {
        crawlHref($, result, a, callback);
    }, endCallback);

}
function crawlHrefs ( result , $ , endCallback ) { log . debug ( { "url" : result . url , "step" : "analyzeHTML" , "message" : "CrawlHrefs" } ) ; async . each ( $ ( 'a' ) , function ( a , callback ) { crawlHref ( $ , result , a , callback ) ; } , endCallback ) ; }
Crawl urls that match to HTML tags a.href found in one page

@param The Http response with the crawl option
@param the jquery like object for accessing to the HTML tags.
@param callback()
Crawl urls that match to HTML tags a . href found in one page