Skip to content

Instantly share code, notes, and snippets.

View ericgrosse's full-sized avatar
:octocat:

Eric Grossé ericgrosse

:octocat:
View GitHub Profile
@ericgrosse
ericgrosse / gist:81056d3e2d1b8fed670bed3af6038ab2
Created January 30, 2023 15:45
Clone all your repositories at once with a simple python script
// Note: You need to plug in your github username, as well as a github personal access token found through Settings -> Developer Settings -> Personal Access Tokens -> Tokens (classic).
import requests
import os
# Your Github username
username = "<github_username>"
# API endpoint to get a list of all repositories
url = f"https://api.github.com/users/{username}/repos"