fabienvauchelles / scrapoxy

Scrapoxy is a super proxy aggregator, allowing you to manage all proxies in one place 🎯, rather than spreading it across multiple scrapers 🕸️. It also smartly handles traffic routing 🔀 to minimize bans and increase success rates 🚀.
http://scrapoxy.io
MIT License
1.97k stars 233 forks source link

how to get the very proxy I am using? #195

Closed cnscorpions closed 3 years ago

cnscorpions commented 4 years ago

I am building my own proxy pool with the help of scraproxy. But I need to take anti-blacklisting into account.

How I get proxy worked in Playwright?

        // 浏览器实例
        const browser = await playwright[randomBrowser].launch({
            proxy: {
                server: 'http://localhost:8888',
            },
        });

It seems that scraproxy rotate IP for me, but I need to remove blackedlisted ip. So how can I get the exactly proxy ip I am using?

Please help.

Thanks.

Lebski commented 3 years ago

Hi @cnscorpions,

it's probably a bit late but it might help others. The proxyname is in the response headers x-cache-proxyname.

So when you catch the proxy and stop it with a post request

POST http://localhost:8889/api/instances/stop
{
  "name": "<name of the proxy>"
}

Hope it helps