Re: How to share session with IE

2006-10-14 Thread John J. Lee
"zdp" <[EMAIL PROTECTED]> writes: [...] > 1. Use the cookie of IE, so I don't need to code to logon. That means I > must use ClientCookie. I found some example in the docs and the > newsgroup. Below is some code based on the docs of ClientCookie. But > the page I get is still the page told me must

Re: How to share session with IE

2006-10-14 Thread John J. Lee
Cameron Walsh <[EMAIL PROTECTED]> writes: [...] > Another option instead of making your program run through a series of > clicks and text inputs, which is difficult to program, is to browse > the html source until you find the name of the script that processes > the login, and use python to request

Re: How to share session with IE

2006-10-12 Thread zdp
I found some similar topics in the newsgroup and get some ideas from them. http://groups.google.com/group/comp.lang.python/browse_thread/thread/2fe0be6c386adce4 http://groups.google.com/group/comp.lang.python/browse_thread/thread/a51cec8747f64619 According to all you suggestions, there are at leas

Re: How to share session with IE

2006-10-10 Thread Cameron Walsh
I just thought, your original question was whether or not it was possible to share your browser session with IE. Unless you do this explicitly, you may require a different login for your Python program and for your IE user. If the Python program does not get the same cookie as used by IE, or

Re: How to share session with IE

2006-10-10 Thread Cameron Walsh
John J. Lee wrote: > "Bernard" <[EMAIL PROTECTED]> writes: >> zdp wrote: > [...] >>> However, now I need to process some pages by a python program. When I >>> use urllib.urlopen(theurl), I can only get a page which told me I need >>> login. I think It's reasonable, becuase I wasn't in a loggined se

Re: How to share session with IE

2006-10-10 Thread John J. Lee
"Bernard" <[EMAIL PROTECTED]> writes: > zdp wrote: [...] > > However, now I need to process some pages by a python program. When I > > use urllib.urlopen(theurl), I can only get a page which told me I need > > login. I think It's reasonable, becuase I wasn't in a loggined session > > which as IE di

Re: How to share session with IE

2006-10-10 Thread zdp
It's exactly what I want. I'll try. Thanks! Bernard wrote: > Hello Dapu, > > You can do the same thing as IE on your forum using urllib2 and > cookielib. In short you need to code a small webcrawler. I can give you > my browser module if necessary. > You might not have the time to fiddle with the

Re: How to share session with IE

2006-10-10 Thread Bernard
Hello Dapu, You can do the same thing as IE on your forum using urllib2 and cookielib. In short you need to code a small webcrawler. I can give you my browser module if necessary. You might not have the time to fiddle with the coding part or my browser module so you can also use this particularly

How to share session with IE

2006-10-10 Thread zdp
Hello! I need to process some webpages of a forum which is powered by discuz!. When I login, there are some options about how long to keep the cookies: forever, month, week, et al. If I choose forever, I don't need to login each time, and When I open the internet explorer I can access any pages d