Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if page1.content == page2.content: #if else statement to check if content of page remained same
- end = timer()
- if ((end-start)) >= 60:
- timeMinutes = (end-start) / 60
- print "[-]No Change Detected @ " +str(url)+ "\n[-]Elapsed Time: " +str(timeMinutes)+ " minutes"
- else:
- print '[-]No Change Detected @ ' +str(url)+ "\n[+]Elapsed Time: " +str((end-start))+ " seconds"
- else:
- end = timer()
- if int((end-start)) >= 60:
- timeMinutes = (end-start) / 60
- print '[+]Change Detected - \n[+]Elapsed Time: ' +str(timeMinutes)+ " minutes"
- else:
- print '[+]Change Detected - \n[+]Elapsed Time: ' +str((end-start))+ " seconds"
- send_email(user, pwd, recipient, subject, body) #send notification email
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement