Apify and Crawlee Official Forum

Updated 3 months ago

socks5 passwore protected proxies

Dear all, how can I use socks5 proxies with crawlee ? Also in general of the proxy is password protected how to put it in proxyUrl ?
I didnt find any exmaple to use password protected proxies and socks5 proxies are not supported by defualt.

Anyway to get around it ?

Best Regards
M
c
5 comments
Hi, we had an interesting conversation here, it's still not working for me on firefox/chromium with playwright thought https://discord.com/channels/801163717915574323/999250964554981446/1080132532495986819
I tried this with playwright/firefox:
Plain Text
 launchContext: {
        launchOptions: {
            proxy: {
                server: `socks5=https://${PROXY_DOMAIN}:${PROXY_PORT}`,
                username: 'username',
                password: 'password'
            } 
        },
    },


and this one with playwright/chromium and puppeteer:
Plain Text
 
launchContext: {
        launchOptions: {
            args: [ `--proxy-server=socks5=https://${PROXY_USERNAME}:${PROXY_PASSWORD}@${PROXY_DOMAIN}:${PROXY_PORT}` ]
        }
    },
The second option using args in puppeteer launch works perfectly with my own implementation of my chrome scraper
Thanks for the help Mojo. But wouldnt that affect the algorithm by which crawlee rotate the proxies ?

Here the proxy is bound to the browser but what if I want to rotate it ?
good question
Add a reply
Sign up and join the conversation on Discord