Python 斜纹布不&x27;不显示表格

Python 斜纹布不&x27;不显示表格,python,twill,Python,Twill,我正在尝试使用twill for python登录 我试过这张代码 import twill b = get_browser() b.go("https://accounts.coursera.org/") b.showforms() twill不会检测页面中的表单,showforms方法不会显示任何内容!! 这是twill软件包的内部问题还是我错了什么 import twill import webbrowser b = twill.get_browser() b.go("

我正在尝试使用twill for python登录 我试过这张代码

import twill 
b = get_browser()  
b.go("https://accounts.coursera.org/")  
b.showforms()
twill不会检测页面中的表单,showforms方法不会显示任何内容!! 这是twill软件包的内部问题还是我错了什么

import twill 
import webbrowser

b = twill.get_browser()  
b.go("https://accounts.coursera.org/")  
page = b.result.get_page()
tmp_page = "tmp.html"
with file(tmp_page, "w") as f:
    f.write(page)
webbrowser.open(tmp_page)

# b.showforms()
我看到一页写着

请使用启用JavaScript的现代浏览器来使用Coursera


所以我怀疑twill没有包含javascript解释器?

是的,twill似乎没有javascript支持。遗憾的是,我对twill感到兴奋。python中有一些javascript实现,其中一个可能很容易添加。ohhh我对这个Twill很兴奋…我将回到请求-_-