views:

35

answers:

2

Hey friends. I want to open Gmail but with a particular account. My python script has a list of gmail accounts and i want the one to open in gmail which has been clicked/selected. I tried using the credentials in the URL but am not happy with that as I don't want to put the users password in the URL + it doesn't work :).

I'm using webbrowser.open(URL) to open gmail.

Solution?

A: 

Not exactly what you're looking for, but some of these tricks may be helpful:

http://stackoverflow.com/questions/1689237/integrating-google-appengine-with-a-thick-client

Vanya
A: 

I have no clue if this would work, but it may be worth a shot.

You could try to spoof the browser and login via urllib and grab the cookie. Then you could programatically put the cookie in the browsers cookie directory and launch the browser to gmail.

It seems like it would work if you can get the browser+google to believe the cookie is a valid one, but it may be possible.

Wayne Werner