This script is used to format a list of proxies into a standard format. The proxy format that the script produces is:
http://user:pass@ip:port
.
The script supports the following proxy formats:
ip:port:user:pass
→ Formatted intohttp://user:pass@ip:port
ip:port
→ Assumes default values foruser
andpass
ip:port:user
→ Assumes defaultpass
Ensure you have Node.js installed on your machine. If not, you can download it from Node.js official website.
git clone <repository_url>
cd <repository_folder>
Create a file named inproxy.txt
in the same directory as the script. This file should contain a list of proxies in one of the supported formats, one proxy per line.
Example inproxy.txt:
192.168.1.1:8080:user:password
10.0.0.1:9090
172.16.0.1:8000:proxyuser
Open your terminal or command prompt, navigate to the folder containing the script, and run the following command:
node convert.js
The script will generate an output file named outproxy.txt
in the same directory. The file will contain the formatted proxies.
Example outproxy.txt:
http://user:[email protected]:8080
http://user:[email protected]:9090
http://proxyuser:[email protected]:8000