From: Jussi S. <jus...@pp...> - 2007-03-23 18:55:09
|
hwg kirjoitti: > 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 > <http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail> > with Yahoo! Mail for Mobile. Get started. > <http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail> > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > The PythonCard Samples Launcher has an application called simpleIEBrowser that I think should clarify a lot of your concerns. NOTE: Please don't confuse this with the simpleBrowser sample! After you have played a little with the simpleIEBrowser and modified the source to fully understand what is happening you may be able to adapt it to fill your needs. I have used the IEHtmlWindow widget and can perhaps help you if you have any more questions. HTH, Jussi -- Jussi Salmela http://personal.inet.fi/cool/operator/ |