Watch That Post

Premshree Pillai premshree_python at yahoo.co.in
Tue May 11 17:39:13 EDT 2004


If you see in the source code, a couple of lines are
commented; you need to play around a bit :-)

I'll work on it later.

-Premshree

 --- Steven <spamtrap at nowhere.net> wrote: > Premshree
Pillai wrote:
> 
> > Hello,
> > 
> > I recently posted a simple Python script--Watch
> That
> > Post--that lets you watch a URL for any changes.
> > 
> > I wrote it to watch posts on LiveJournal, but it
> can
> > watch any URL.
> > 
> > It's at
> http://premshree.seacrow.com/code/python/watch
> 
> 
> I tried running it. It works fine until it tries to
> run the watch function a
> second time, then it does this:
> 
> Traceback (most recent call last):
>   File "watch.py", line 76, in ?
>     watch()
>   File "watch.py", line 58, in watch
>     size2 = len(urllib.urlopen(url).readlines())
>   File "/usr/lib/python2.3/urllib.py", line 76, in
> urlopen
>     return opener.open(url)
>   File "/usr/lib/python2.3/urllib.py", line 181, in
> open
>     return getattr(self, name)(url)
>   File "/usr/lib/python2.3/urllib.py", line 410, in
> open_file
>     return self.open_local_file(url)
>   File "/usr/lib/python2.3/urllib.py", line 420, in
> open_local_file
>     raise IOError(e.errno, e.strerror, e.filename)
> IOError: [Errno 2] No such file or directory:
> 'www.kde-apps.org'
> 
> I really like the idea,
> 
> Steven
> -- 
> http://mail.python.org/mailman/listinfo/python-list 

=====
-Premshree
[http://www.qiksearch.com/]

________________________________________________________________________
Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/




More information about the Python-list mailing list