How to interpret JavaScript with Python

后端 未结 5 2017
滥情空心
滥情空心 2021-01-14 06:41

It is possible to run JavaScript with Python? There are any library that makes this possible?

I need to execute some JavaScript, I know that this is possible with so

5条回答
  •  没有蜡笔的小新
    2021-01-14 07:31

    Using spidermonkey would give you a tightier integration of your code, but as a workaround, you could make the javascript get run in a browser using Selenium remote-control:

    http://seleniumhq.org/projects/remote-control/ (there are ways of doing that without needing a "physical" display for the browser, using VNC servers, for example)

提交回复
热议问题