【发布时间】:2019-06-24 10:25:03
【问题描述】:
我正在尝试遍历私人组织中的所有存储库。以下是一些在我的机器(Windows 10、Python 3.6.5)上无法运行的示例代码:
import github3
session = github3.login(token = "A token that works with other github3.py functions and also has all permissions for testing")
org = session.organization("private organization name")
repos = list(org.iter_repos(type = "all"))
当我运行它时,我得到: 属性错误:iter_repos 回溯指向我调用 iter_repos 的第 5 行。
【问题讨论】:
标签: python github github3.py