Python script that parses Shadowsocks server configuration file and generates a client configuration URI.
Simply copy and paste the following in a terminal:
python <(curl -s https://raw.githubusercontent.com/amayatsky/shadowsocks-url-generator/master/ss-genuri.py) \
-c /etc/shadowsocks-libev/config.json
Change /etc/shadowsocks-libev/config.json
path if needed. Alternatively, you can provide a different config file path
Input:
{
"remarks": "ShadowSocks Server",
"server":"github.com",
"server_port":8388,
"password":"fake_pwd",
"method":"chacha20-ietf-poly1305"
}
Output:
ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpmYWtlX3B3ZEBnaXRodWIuY29tOjgzODg=#ShadowSocks%20Server
Python 3.9+
Feel free to send your PRs and report any issues.
https://github.com/shadowsocks/shadowsocks-libev
https://www.shadowsocks.org/en/index.html