1 Star 0 Fork 0

xuanyusan / watermalen

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
loadSource.py 525 Bytes
一键复制 编辑 原始数据 按行查看 历史
xuanyusan 提交于 2021-01-28 15:12 . fix load python script
import requests
import os,re
with open("source.txt", "r") as f:
os.system("mkdir res/raw-assets")
for i in range(74):
url = f.readline().strip()
print(url)
g = re.match(".*res/raw-assets/(.*)/(.*)",url)
path = ['res/raw-assets/']
path.append(g.group(1))
path.append(g.group(2))
os.system("cd {0} && touch {1}/{2}".format(*path))
req = requests.get("http:"+url)
with open("{0}/{1}/{2}".format(*path),"wb") as fc:
fc.write(req.content)
1
https://gitee.com/xuanyusan/watermalen.git
git@gitee.com:xuanyusan/watermalen.git
xuanyusan
watermalen
watermalen
master

搜索帮助