Re: begin to parse a web page not entirely downloaded

2007-02-08 Thread k0mp
On Feb 8, 8:02 pm, Leif K-Brooks <[EMAIL PROTECTED]> wrote: > k0mp wrote: > > It seems to take more time when I use read(size) than just read. > > I think in both case urllib.openurl retrieve the whole page. > > Google's home page is very small, so it's not re

Re: begin to parse a web page not entirely downloaded

2007-02-08 Thread k0mp
On Feb 8, 8:06 pm, Björn Steinbrink <[EMAIL PROTECTED]> wrote: > On Thu, 08 Feb 2007 10:20:56 -0800, k0mp wrote: > > On Feb 8, 6:54 pm, Leif K-Brooks <[EMAIL PROTECTED]> wrote: > >> k0mp wrote: > >> > Is there a way to retrieve a web page and before it is

Re: begin to parse a web page not entirely downloaded

2007-02-08 Thread k0mp
On Feb 8, 6:54 pm, Leif K-Brooks <[EMAIL PROTECTED]> wrote: > k0mp wrote: > > Is there a way to retrieve a web page and before it is entirely > > downloaded, begin to test if a specific string is present and if yes > > stop the download ? > > I believe that urll

begin to parse a web page not entirely downloaded

2007-02-08 Thread k0mp
Hi, Is there a way to retrieve a web page and before it is entirely downloaded, begin to test if a specific string is present and if yes stop the download ? I believe that urllib.openurl(url) will retrieve the whole page before the program goes to the next statement. I suppose I would be able to d

how to trace threads ?

2006-07-05 Thread k0mp
Hi, First, sorry for the dumb question. I'm trying to find out how to trace threads. There is a settrace function in the threading module but I can't figure out how to use it. Is there someone who can show me a sample ? Thanks, Kathan -- http://mail.python.org/mailman/listinfo/python-list