Skip to content

Commit b27496e

Browse files
authored
Update README.md
1 parent 5500b5f commit b27496e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

+21
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
11
# Python Proxy Formatter
22

33
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

Comments
 (0)