Watch That Post
Matt Leslie
matthewleslie at hotmail.com
Mon May 10 16:07:03 EDT 2004
Steven wrote:
>
> 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
The URLs in the url file need to start with http://
Matt
More information about the Python-list
mailing list