如何将ExecJS使用的引擎设置为NodeJS?

时间:2015-08-13 12:02:10

标签: python node.js cloudflare execjs

我正在尝试使用以下软件包:https://github.com/Anorov/cloudflare-scrape/blob/master/cfscrape/init.py

我有以下测试文件:

import cfscrape
import sys
import execjs

who = sys.argv[1]
scraper = cfscrape.create_scraper() 
print scraper.get(who).content

正在输出以下错误:

Traceback (most recent call last): File "test.py", line 1, in import cfscrape File "build/bdist.macosx-10.10-intel/egg/cfscrape/__init__.py", line 17, in EnvironmentError: Your Javascript runtime 'JavaScriptCore' is not supported due to security concerns. Please use Node.js, V8, or PyV8.

任何人都可以指出我正确的方向将我的JS_ENGINE从JavaScriptCore更改为NodeJs

0 个答案:

没有答案