Grab text from html with user and pass???

Paul Goodyear paul at gudge.demon.co.uk
Mon Jan 8 11:11:24 EST 2001


Cheers,

Nah it still won't let me.

I even got the username setup so I can pass a username and password.

But it still didn't work.

If I give it the username and password it just keeps looping, if I press
enter twice to give no username and no password the code exit's and it
prints the Authorisation Error produced by the failed logon. :(((

Anybody????????

pgudge

"David C. Ullrich" <ullrich at math.okstate.edu> wrote in message
news:3a59d104.8675840 at nntp.sprynet.com...
> On Mon, 08 Jan 2001 09:52:57 GMT, "Paul Goodyear"
> <paul at gudge.demon.co.uk> wrote:
>
> >I am trying to pull out a Ip address from a .html file,
> >
> >I have done this successfully already BUT,
> >
> >The site has a password, the username is blank and the pass word is ****
> >blah blah
> >
> >When I run the
> >
> >[code]      url.urlopen('http://www.blah.com/ip.html')
> >
> >all I get is "Enter username for ** at ** :"   if i press just return I
am
> >then asked for the password, after entering the password the process just
> >keeps repeating.
> >
> >I know for well that the password is correct, I just need it to accept a
> >blank username
>
> Probably the problem is something else so this won't help, but
> it couldn't hurt to try: You can specify the url as
>
> url.urlopen('http://username:password@www.blah.com/ip.html')
>
> or maybe it's
>
> url.urlopen('http://password:username@www.blah.com/ip.html')
>
> >Regards,
> >
> >Paul Goodyear
> >
> >
>





More information about the Python-list mailing list