我正在尝试使用以下软件包: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