私はpyqtを学んでおり、Webページの解析に使用しています。
今、私はこの回答と同じようにpyqtを使用してjavascript関数を評価したい: Spidermonkey evaluate js function which in remote js file
import urllib2
import spidermonkey
js = spidermonkey.Runtime()
js_ctx = js.new_context()
script = urllib2.urlopen('http://etherhack.co.uk/hashing/whirlpool/js/whirlpool.js').read()
js_ctx.eval_script(script)
js_ctx.eval_script('var s = "abc"')
js_ctx.eval_script('print(HexWhirlpool(s))')
Spidermonkey の代わりに pyqt を使用して同じ効果を得る方法を知りたいです。