gajus / puppeteer-proxy

Proxies Puppeteer Page requests.
Other
197 stars 24 forks source link

Can you support proxy via socks5 ? #3

Closed meotimdihia closed 4 years ago

meotimdihia commented 4 years ago
    const SocksProxyAgent = require('socks-proxy-agent')
    const agent = new SocksProxyAgent('socks://127.0.0.1:9050', true)
     await got('https://example.com', {
     agent: agent,
        decompress: true
     })
gajus commented 4 years ago

I am not familiar with sock proxies. But I would happily accept a contribution if someone created PR with a test case.

meotimdihia commented 4 years ago

Thanks for the reply. I close the issue. 😃