[LUNI] Pseudo RSS

Frank Mileto frank.mileto at advocatehealth.com
Tue Jul 24 12:15:56 CDT 2007


Quick and dirty python could work but may want to have the script email you
or run it on a open terminal

####################
from urllib2 import urlopen
from sys import argv
import  md5
from time import sleep
def lookup(url,timer):
 while(1):
  page =  urlopen(url)
  hash =  md5.md5(page.read())
  sleep(float(timer))
  page =  urlopen(url)
  hash2 =  md5.md5(page.read())
  if hash == hash2:
    continue
  else:
    print "page has been updated"
lookup(argv[1],argv[2])
##########################################

On 7/24/07, Samir Faci <sfaci at cs.uic.edu> wrote:
>
> Well, is it a site you're maintaining, or just some random site?
>
> if it's some random site, I would do a wget on the main index file and
> just
> do a md5sum check on the retrieved file.  Though I'm sure there's simpler
> ways of doing this.
>
> --
> Samir
>
> On 7/24/07, Mike Scott <luni at pyewacket.org> wrote:
> >
> > wget + cron?
> >
> > - Mike Scott
> >
> >
> > > -------- Original Message --------
> > > Subject: [LUNI] Pseudo RSS
> > > From: "Jay Strauss" <me at heyjay.com>
> > > Date: Tue, July 24, 2007 9:24 am
> > > To: "Linux Users Of Northern Illinois - Technical Discussion"
> > > <luni at luni.org>
> > >
> > > Hi,
> > >
> > > Does anyone know of a product/tool/script that could tell me when a
> > > web page has changed?  Sort of like RSS, but this site doesn't have
> > > RSS.
> > >
> > > I need to watch this page on a bulletin board where fairly
> > > infrequently someone posts a message that I need to know has been
> > > posted.  I hate having to remind myself to check all the time, and the
> > > site has no provision to email.
> > >
> > > It'd be nice if I could have some utility do it for me.
> > >
> > > Thanks
> > > Jay
> > > --
> > > Linux Users Of Northern Illinois - Technical Discussion
> > > http://luni.org/mailman/listinfo/luni
> >
> > --
> > Linux Users Of Northern Illinois - Technical Discussion
> > http://luni.org/mailman/listinfo/luni
> >
> --
> Linux Users Of Northern Illinois - Technical Discussion
> http://luni.org/mailman/listinfo/luni
>



-- 
Frank Mileto
b4f99998e3644679b5e815a35fcf2beb


More information about the luni mailing list