Best Practices for Setting Up a puppeteer proxyserver with socks5h – Any Tips?

18 Replies, 885 Views

Hey! I’ve had success with puppeteer proxyserver socks5h by using a library called `puppeteer-page-proxy`. It simplifies the whole process.

Here’s a quick example:
```javascript
const { useProxy } = require('puppeteer-page-proxy');
await useProxy(page, 'socks5h://user:pass@proxyIP:port');
```
This way, you don’t have to mess with launch args. Also, make sure your proxy supports socks5h—some only do socks5, which won’t work for DNS resolution.

Messages In This Thread



Users browsing this thread: 1 Guest(s)