how to use PyV8 and httplib to interpret javascript
I would like to write my own web test engine that will request开发者_如何转开发 (get/post) my wsgi application and i would like my client to interpret the return page that contains some javascript code.
Basically it is how to use a PyV8 to make a headless browser.
Thx
Unless you really want to do this project yourself, have you considered using PhantomJS (home page)? It's a headless WebKit with support for scripting in Javascript, and has both C++ and Python implementations (though the Python version seems slightly less well-supported than the C++ version, and there was some chatter on the mailing list about discontinuing Python development).
精彩评论