|
1 | 1 | # Python Proxy Formatter
|
2 | 2 |
|
3 | 3 | A Python script to reformat proxy strings into a consistent format. It can handle various input formats, including HTTP, HTTPS, SOCKS4, SOCKS5, as well as username and password with or without a hostname/IP and port.
|
| 4 | + |
| 5 | +## Supported Formats |
| 6 | + |
| 7 | +The Python Proxy Formatter supports the following formats: |
| 8 | + |
| 9 | + http://hostname:port |
| 10 | + http://username:password@hostname:port |
| 11 | + https://hostname:port (converted to http://) |
| 12 | + https://username:password@hostname:port (converted to http://) |
| 13 | + socks4://hostname:port |
| 14 | + socks4://username:password@hostname:port |
| 15 | + socks5://hostname:port |
| 16 | + socks5://username:password@hostname:port |
| 17 | + |
| 18 | +## Error Handling |
| 19 | + |
| 20 | +If an invalid proxy format is provided, the reformat_proxy function will raise an exception with an error message. |
| 21 | + |
| 22 | +## Contributions |
| 23 | + |
| 24 | +Contributions to improve and expand the functionality of this Python Proxy Formatter are welcome. Feel free to create issues or pull requests. |
0 commit comments