in reply to Simple LWP Exercise
Anyhow, my script runs in the background and polls the page at regular intervals (with my preferred search options) for changes, and if there are any, it fires up a browser with the page in question so I can see if it seems interesting and then apply. Just like yours do.
I have this running here on my comp while I am working.
I have one "significant" extra, and that is a few regexps that strips everything but the apt list from the HTML before comparing, due ot the fact that otherwise dynamics like different ads or such could affect the size comparison. This is probably not necessary for many pages, not even sure if it is for the one I am polling. :)
What all those words are trying to say is that yes, there is a use for such a script. :)
As for improvements, well, I guess it could be more configurable - maybe even put it in a module on its own, so you could just say something like:
Well, you get the idea. In that case, I guess it should also fork/thread, so you could poll several sites at the same time.check_site( url => $url, interval => 1800, process => \&clean_page, etc => 'more options', );
Not if I know if there would be a great demand for such a module, but hey - if nothing else, it may be fun to write. :)
There are rumours that cattle prods may have at least a limited effect on the behaviour of users... :)
|
|---|