Re: [Tutor] opening a javascript window and reading its source

2007-11-27 Thread Remco Gerlich
Hi, Python can't run Javascript functions. Note that "HTTPCookieProcessor" is a HTTP thing, so it can handle "http:" links, not "javascript:" links. Your best bet would probably be to download all the Javascript files mentioned in the original HTML file, and try to find out what the toggleBackpa

[Tutor] opening a javascript window and reading its source

2007-11-26 Thread Chiar Nimeni
i basicly need python to open a certain javascript window ... then read it's source ... how do i do that? - import urllib2 import cookielib cj = cookielib.CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) url = opener.open("The url that has a