From: hwg <hw...@ya...> - 2007-03-15 13:03:49
|
I have a couple questions about IEHtmlWindow. I'm working on a tool to help me manage my Yahoo Photo accounts. I would like to use a browser window to perform the login. But then I need to pass control over to my code, which uses urllib2, cookielib, and BeautifulSoup to get and parse the album and photo pages. I need the cookie generated from the login in order to get subsequent pages. So, a few questions: 1. Where does IEHtmlWindow store its cookies? Can I copy the cookie over so that my cookielib code can use it? (If I log in using my own code, not a browser window, then the cookie is stored in the cookiefile I initialize in the code.) 2. How can I access the contents (HTML source) of an IEHtmlWindow? If I can't get the cookies to work, an alternative is to pass everything through the browser window, which will use the cookie it got during login. 3. Is there a way to make a "password entry" text field, where the typed characters are masked (appear as stars)? By the way, the reason I want to use a browser window instead of just passing the username and password from some text fields in my Pythoncard app is that occasionally, the user gets one of those login challenges, where they give you an image, and you have to type in the "secret code". If they are logging in through the browser window, they can see this and respond accordingly. Any help with this would be much appreciated. hg --------------------------------- No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. |