How to load a nodejs module in PyV8?
问题 How can I load a nodejs module in PyV8? I've read all about how great jsdom is when run with nodejs. Will I get the same dom-traversing benefits if I run v8 inside a Python app, with python "getting" the web resources, then giving the resulting html strings to the v8 instance, which has loaded jsdom internally (or is this a nonsensical configuration for some reason I haven't thought of yet?) 回答1: I'm afraid this isn't possible as jsdom requires some node constructs which are not available