I didn't catch how to implement user abortion. Could you, please, drop an example, explaining where to insert the command and how? Would be great. Thank you in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
it's possible to abort the crawling-process by returning any negative value from the handlePageData()-method.
Just an example:
// ...classMyCrawlerextendsPHPCrawler{functionhandlePageData(&$page_data){// ...// Will stop the crawling-process as soon as the current URL contains "something"if(preg_match("#something#",$page_data["url"]))return-1;}}// ...
Is it this what you mean with "user abortion"?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I didn't catch how to implement user abortion. Could you, please, drop an example, explaining where to insert the command and how? Would be great. Thank you in advance.
Hi,
it's possible to abort the crawling-process by returning any negative value from the handlePageData()-method.
Just an example:
Is it this what you mean with "user abortion"?