使用NightmareJS代理

问题描述 投票:0回答:1

我正在尝试让NightmareJS使用一些代理。

这是我的代码的样子:

const Nightmare = require('nightmare');

var nightmare = Nightmare({
    switches: {
        'proxy-server': 'exampleProxy.io:19081',
        'ignore-certificate-errors': true
    },
    show: true
});

nightmare
    .goto('http://www.example.com')

奇怪的是:它的工作原理非常缓慢,而且经常会超时。我正在本地计算机上进行测试。没有代理,速度非常快。可以认为代理本身是快速的。

任何想法可能有什么问题吗?

node.js nightmare
1个回答
0
投票

嘿,您有没有找到解决方案?如果是这样,请回信。谢谢

© www.soinside.com 2019 - 2024. All rights reserved.