mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-08-10 22:35:00 +08:00
move to sub dir
This commit is contained in:
18
net/DownloadHelper/mirror.py
Executable file
18
net/DownloadHelper/mirror.py
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import json
|
||||
import sys
|
||||
|
||||
__author__ = 'ty'
|
||||
|
||||
config = json.load(open('config.json'))
|
||||
mirror = config["mirror"]
|
||||
url = config["url"]
|
||||
|
||||
l = sys.argv[1]
|
||||
|
||||
download_link = l
|
||||
|
||||
for m in mirror:
|
||||
download_link += " " + l.replace(url, m)
|
||||
print download_link + "\n"
|
Reference in New Issue
Block a user