Python cfscrape error: Missing Node.js runtime
Python cfscrape error: Missing Node.js runtime
我正在尝试在 Python 3.6 中使用 cfscrape 来绕过 cloudflare:
import cfscrape
scraper = cfscrape.create_scraper() # returns a CloudflareScraper instance
url = "https://..."
print(scraper.get(url).content)
但它给我以下错误:
OSError: Missing Node.js runtime. Node is required. Please read the
cfscrape README's Dependencies section:
https://github.com/Anorov/cloudflare-scrape#dependencies.
问题是我已经安装了所有依赖项,我可以 运行 节点,例如通过终端:
node -v
给我 --> v8.9.1
那我做错了什么?
重启电脑后,一切正常
我正在尝试在 Python 3.6 中使用 cfscrape 来绕过 cloudflare:
import cfscrape
scraper = cfscrape.create_scraper() # returns a CloudflareScraper instance
url = "https://..."
print(scraper.get(url).content)
但它给我以下错误:
OSError: Missing Node.js runtime. Node is required. Please read the cfscrape README's Dependencies section: https://github.com/Anorov/cloudflare-scrape#dependencies.
问题是我已经安装了所有依赖项,我可以 运行 节点,例如通过终端:
node -v
给我 --> v8.9.1
那我做错了什么?
重启电脑后,一切正常