python3导出gitlab信息小实例

import  gitlab,config

project_list = []
gl = gitlab.Gitlab(config.url,config.token)


project_list = gl.projects.list(all=True)

with open("./project_list_file","a") as f:
        for i in project_list:
                line = i.web_url + ',' + str(i.id) + "\n"
                f.write(line

你可能感兴趣的:(python,python)