Skip to content

Commit 5a02a3c

Browse files
Merge pull request #104 from jinwandalaohu66/submission/vpn_mnqlott7
2 parents 8b0253e + 12bfa47 commit 5a02a3c

2 files changed

Lines changed: 43 additions & 2 deletions

File tree

script_library/index.json

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"format_version": 1,
3-
"data_version": 85,
4-
"updated": "2026-04-07T16:37:23Z",
3+
"data_version": 86,
4+
"updated": "2026-04-08T22:09:17.767Z",
55
"announcement": null,
66
"categories": [
77
{
@@ -1421,6 +1421,29 @@
14211421
"updated": null,
14221422
"status": "active",
14231423
"lines": 29
1424+
},
1425+
{
1426+
"id": "vpn_mnqlott7",
1427+
"name": "vpn",
1428+
"name_en": "vpn",
1429+
"desc": "Proxy",
1430+
"desc_en": "Proxy",
1431+
"category": "ui",
1432+
"file": "scripts/ui/vpn_mnqlott7.py",
1433+
"thumbnail": null,
1434+
"version": 1,
1435+
"file_type": "py",
1436+
"author": "Viển",
1437+
"author_en": "Viển",
1438+
"tags": [
1439+
"community"
1440+
],
1441+
"requires": [],
1442+
"min_app_version": "1.5.0",
1443+
"added": "2026-04-08",
1444+
"updated": null,
1445+
"status": "active",
1446+
"lines": 18
14241447
}
14251448
]
14261449
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import requests
2+
import base64
3+
from urllib.parse import quote
4+
5+
def fetch_and_generate_vmess():
6+
data = requests.get("https://fastconn.github.io/v/servers.json").json()
7+
8+
u = data["cfgs"]["vmess"]["a"]["u"]
9+
pt = data["cfgs"]["vmess"]["a"]["pt"]
10+
11+
for item in data["l"]:
12+
for server in item.get("servers", []) + item.get("vip-bak", []):
13+
if server.get("ip") and server.get("city"):
14+
vmess_b64 = base64.b64encode(f"auto:{u}@{server['ip']}:{pt}".encode()).decode()
15+
print(f"vmess://{vmess_b64}?remarks={quote(server['city'])}&allowInsecure=1&alterId=1")
16+
17+
if __name__ == "__main__":
18+
fetch_and_generate_vmess()

0 commit comments

Comments
 (0)