Mar-10-2022, 04:11 AM
(This post was last modified: Mar-10-2022, 06:27 AM by Yoriz.
Edit Reason: Added code tags
)
I tried to do some searching, however I was unable to find how to do this. I wanted to see if anyone has any suggestions on this. I am trying to get the output of this program to end up in a zip file. Thank you
import base64 from github import Github from pprint import pprint from shutil import make_archive from zipfile import ZipFile file = "github-repo" # zip file name directory = "output" # Github username name = input() username = name # pygithub object g = Github() # get that user by username user = g.get_user(username) for repo in user.get_repos(): print(repo) make_archive(file, "zip", directory) # zipping the directory