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

2024-10-02 08:28:02 发布

您现在位置:Python中文网/ 问答频道 /正文

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

输出以下错误:

^{pr2}$

有人能告诉我正确的方向把我的JS引擎从JavaScriptCore改成{}


Tags: pyhttpsimportgithubmastercominitsys

热门问题