On Feb 8, 6:20 pm, "k0mp" <[EMAIL PROTECTED]> 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 entirely
> > > downloaded, begin to test if a specific string is present and if yes
> > > stop the do
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 really a great test of
> that. Here's a t
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 entirely
> >> > downloaded, begin to test i
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 entirely
>> > downloaded, begin to test if a specific string is present and if yes
>> > stop the download ?
>> >
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 really a great test of
that. Here's a test downloading the first 512 bytes of an Ubuntu ISO
(beware of wrap)
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 urllib.openurl(url) will retrieve the who
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 urllib.openurl(url) will retrieve the whole page before
> the program goes to the next statement.
Use urllib.u
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