Re: Entering username & password automatically using urllib.urlopen

2007-10-14 Thread James Matthews
if you want to hardcode the password in the url. What you need to do is http:username:[EMAIL PROTECTED] On 10/14/07, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: > > rodrigo schrieb: > > I am trying to retrieve a password protected page using: > > > > get = urllib.urlopen('http://password.protected

RE: Entering username & password automatically using urllib.urlopen

2007-10-14 Thread Ryan Ginstrom
> On Behalf Of rodrigo > I am trying to retrieve a password protected page using: > > get = urllib.urlopen('http://password.protected.url";').read() I would suggest looking at mechanize. http://wwwsearch.sourceforge.net/mechanize/ from mechanize import Browser USERNAME = "user" PASSWORD = "secr

Re: Entering username & password automatically using urllib.urlopen

2007-10-14 Thread Daniel Larsson
You form the URL thus: http://:@:/ This is defined in RFC 1738 On 10/14/07, rodrigo <[EMAIL PROTECTED]> wrote: > > I am trying to retrieve a password protected page using: > > get = urllib.urlopen('http://password.protected.url";').read() > > While doing t

Re: Entering username & password automatically using urllib.urlopen

2007-10-14 Thread byte8bits
On Oct 13, 11:41 pm, rodrigo <[EMAIL PROTECTED]> wrote: > I am trying to retrieve a password protected page using: > > get = urllib.urlopen('http://password.protected.url";').read() > > While doing this interactively, I'm asked for the username, then the > password at the terminal. > Is there any

Re: Entering username & password automatically using urllib.urlopen

2007-10-14 Thread Diez B. Roggisch
rodrigo schrieb: > I am trying to retrieve a password protected page using: > > get = urllib.urlopen('http://password.protected.url";').read() > > While doing this interactively, I'm asked for the username, then the > password at the terminal. > Is there any way to do this non-interactively? To

Entering username & password automatically using urllib.urlopen

2007-10-14 Thread rodrigo
I am trying to retrieve a password protected page using: get = urllib.urlopen('http://password.protected.url";').read() While doing this interactively, I'm asked for the username, then the password at the terminal. Is there any way to do this non-interactively? To hardcode the user/ pass into th