The v2forge.py script collects v2ray configs (vmess/vless/trojan/ss/hysteria/etc.) from verified raw.githubusercontent.com subscription sources, parses them with python_v2ray, and filters down to reachable servers via TCP handshake. Surviving configs are saved to ./configs/configs.txt.
Clone this repository:
git clone https://github.com/NakuTenshi/v2ray_config_collector
cd v2ray_config_collectorInstall requirements:
pip3 install -r requirements.txtRun the script:
python3 v2forge.py- Reads source URLs from
sources.txt(87 verified sources) - Spawns one thread per source to fetch configs concurrently
- Parses each line with
python_v2ray.config_parser.parse_uri() - Tests reachability with a TCP handshake (2s timeout)
- Appends reachable configs to
./configs/configs.txt
vmess · vless · trojan · shadowsocks · socks · wireguard · hysteria · hysteria2 · hy2
sources.txtmust be in the same directory asv2forge.py
To add your own sources, simply append a URL to
sources.txt(one URL per line, must point to a plain-text config list onraw.githubusercontent.com)
Unhandled exceptions from worker threads are logged to
errors.log
After collecting, if you have more than 1000 configs (awkward to import on mobile), split the output:
split -l 1000 -d --additional-suffix=.txt configs/configs.txt config_Output:
config_00.txt config_01.txt config_02.txt config_03.txt