Menu

Stopping the Crawler

Help
Anonymous
2014-01-29
2015-01-12
  • Anonymous

    Anonymous - 2014-01-29

    Lets say I'm looking for some particular data. When I've found it, is there anyway to stop the crawler from within the document callback? I don't want to exit the script since there's still more it needs to do after the item is found.

     
  • Anonymous

    Anonymous - 2014-01-29

    Hi!

    Yes, just let your handleDocumentInfo()-method return any negative value/integer, the crawler will stop after that request.

    Also take a look at the docs:
    http://phpcrawl.cuab.de/classreferences/PHPCrawler/method_detail_tpl_method_handleDocumentInfo.htm

     
  • Anonymous

    Anonymous - 2014-01-29

    Wow thanks a lot for the quick response! Looks good, thanks for the help.

     
  • Anonymous

    Anonymous - 2015-01-12

    good but seem can explain this feature in document :D

     

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.