M
M
Mikhail2021-06-11 13:12:02
Python
Mikhail, 2021-06-11 13:12:02

How to create a local proxy from a proxy with authorization?

I have a proxy with authorization, I need to load proxies in selenium with headless mode, but I have them with authorization (I know a way to authorize proxies using an extension, but they cannot be used in headless mode)

I know the answer to my question, but only on node.js

const puppeteer = require('puppeteer');
const proxyChain = require('proxy-chain');

(async() => {
    const oldProxyUrl = 'http://bob:[email protected]:8000';
    const newProxyUrl = await proxyChain.anonymizeProxy(oldProxyUrl); // http://127.0.0.1:45678

    const browser = await puppeteer.launch({
        args: [`--proxy-server=${newProxyUrl}`],
    });
})();


Is it possible to do something similar in python?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zlo1, 2021-06-14
@zlo1

3proxy supports redirect to proxy with parent
option authorization

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question