How to stop crawler after if It has been running for XX time
Anonymous
2016-07-29
2016-07-29
×
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.
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Hi everyone,
I write to know how to stop a crawling if It has been running for a while. Is there any method to invoke a stop the crawling?
Note: The script execute more instructions after it end the crawling, so I don`t wanna stop the execution at all, only the crawling.
Example:
If(time() - $date_start <= 0){
$crawler->stop()
send mail;
several instructions, etc.
}