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 javascript window toggled on click")
js = opener.open('javascript:toggleBackpack(null,2190551);')  # opening the JS 
window
js2 = opener.open("javascript:toggleBackpack('orb',2190551);") # toggleing 
another section on the JS window
source = js2.read()
print source
       
---------------------------------
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to