Menu

How can I use getCrawlerId() to get the crawl ID inside handleDocumentInfo()?

Help
Anonymous
2015-01-14
2015-01-14
  • Anonymous

    Anonymous - 2015-01-14

    I'm trying to grab the unique crawler ID for each scan while inside the handleDocumentInfo() function. Is there an easy way to do this?

    Thanks!

    ~ b

     
  • Anonymous

    Anonymous - 2015-01-14

    Simply use $this->getCrawlerId() inside the handleDocumentInfo() method, doesn't it work?

     
  • Anonymous

    Anonymous - 2015-01-14

    Never mind... I think I figured it out:

    $crawler = new MyCrawler();
    define("crawlerId",$crawler->getCrawlerId());

    Then, inside the handleDocumentInfo() function:

    echo(crawlerId);

    If it's not obvious, I'm new to PHP :)

    Thanks!

    ~ b

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.