提交 f1c1d4b3 编写于 作者: G gaoruoshu 提交者: Gitee

update gitee.py.

上级 2169691f
...@@ -37,7 +37,8 @@ class Gitee: ...@@ -37,7 +37,8 @@ class Gitee:
print("=================================================") print("=================================================")
page = 1 page = 1
while (page <= total_page): while (page <= int(total_page)):
response = requests.get(reps_url + "?page=" + page++, headers=self.headers) response = requests.get(reps_url + "?page=" + str(page), headers=self.headers)
page += 1
for each in response.json(): for each in response.json():
print(each.get("human_name") + "\n\t" + each.get("url")) print(each.get("human_name") + "\n\t" + each.get("url"))
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册