lib/page.js
function(callback){
    var options = {},//  utils.clone( this.options ),
        self = this;

    options.baseUrl = self.url;

    self.startedUFParse = new Date();
    //console.log(self.url)

    try
    {
      parser.parseHtml (self.html, options, function(err, data){

        //console.log( JSON.stringify(data) );
        if(data){

          self.profile.hCards = self.getArrayOfContentType(data, 'h-card' );
          self.profile.hResumes = self.getArrayOfContentType(data, 'hresume' );
          self.profile.xfn = self.getArrayOfContentType(data, 'xfn' );

        }
        if(callback){
          callback();
        }
      });
    }
    catch(err)
    {
      self.options.logger.warn('error parsing microformats in page: ' + self.url);
      self.error = err;
      callback();
    }

    self.endedUFParse = new Date();
    self.parseTime = self.endedUFParse.getTime() - self.startedUFParse.getTime();
    self.options.logger.log('time to parse microformats in page: ' + self.parseTime + 'ms - ' + self.url);
  }
function(callback){
    var options = {},//  utils.clone( this.options ),
        self = this;

    options.baseUrl = self.url;

    self.startedUFParse = new Date();
    //console.log(self.url)

    try
    {
      parser.parseHtml (self.html, options, function(err, data){

        //console.log( JSON.stringify(data) );
        if(data){

          self.profile.hCards = self.getArrayOfContentType(data, 'h-card' );
          self.profile.hResumes = self.getArrayOfContentType(data, 'hresume' );
          self.profile.xfn = self.getArrayOfContentType(data, 'xfn' );

        }
        if(callback){
          callback();
        }
      });
    }
    catch(err)
    {
      self.options.logger.warn('error parsing microformats in page: ' + self.url);
      self.error = err;
      callback();
    }

    self.endedUFParse = new Date();
    self.parseTime = self.endedUFParse.getTime() - self.startedUFParse.getTime();
    self.options.logger.log('time to parse microformats in page: ' + self.parseTime + 'ms - ' + self.url);
  }
function ( callback ) { var options = { } , //  utils.clone( this.options ), self = this ; options . baseUrl = self . url ; self . startedUFParse = new Date ( ) ; //console.log(self.url) try { parser . parseHtml ( self . html , options , function ( err , data ) { //console.log( JSON.stringify(data) ); if ( data ) { self . profile . hCards = self . getArrayOfContentType ( data , 'h-card' ) ; self . profile . hResumes = self . getArrayOfContentType ( data , 'hresume' ) ; self . profile . xfn = self . getArrayOfContentType ( data , 'xfn' ) ; } if ( callback ) { callback ( ) ; } } ) ; } catch ( err ) { self . options . logger . warn ( 'error parsing microformats in page: ' + self . url ) ; self . error = err ; callback ( ) ; } self . endedUFParse = new Date ( ) ; self . parseTime = self . endedUFParse . getTime ( ) - self . startedUFParse . getTime ( ) ; self . options . logger . log ( 'time to parse microformats in page: ' + self . parseTime + 'ms - ' + self . url ) ; }
parses microformats from html
parses microformats from html