mirror of
https://github.com/GXDE-OS/GXDE.git
synced 2026-06-22 03:36:36 +08:00
@@ -50,16 +50,11 @@ def sync(i):
|
|||||||
os.system(f"rm -rf '{programPath}/git-clone/{i}.git'")
|
os.system(f"rm -rf '{programPath}/git-clone/{i}.git'")
|
||||||
thread -= 1
|
thread -= 1
|
||||||
|
|
||||||
data = requests.get("https://github.com/orgs/GXDE-OS/repos_list?q=&page=1", headers=dataHeaders).json()
|
data = requests.get("https://api.github.com/users/GXDE-OS/repos", headers=dataHeaders).json()
|
||||||
# 获取页数
|
|
||||||
page = int(data["pageCount"])
|
|
||||||
repoList = []
|
repoList = []
|
||||||
# 获取仓库列表
|
# 获取仓库列表
|
||||||
for i in range(1, page + 1):
|
for i in data:
|
||||||
pageData = requests.get(f"https://github.com/orgs/GXDE-OS/repos_list?q=&page={i}", headers=dataHeaders).json()
|
repoList.append(i["name"])
|
||||||
repositories = pageData["repositories"]
|
|
||||||
for j in repositories:
|
|
||||||
repoList.append(j["name"])
|
|
||||||
# 多线程处理以提升速度
|
# 多线程处理以提升速度
|
||||||
thread = 0
|
thread = 0
|
||||||
threadMax = 32
|
threadMax = 32
|
||||||
|
|||||||
Reference in New Issue
Block a user