Simple python script for devs how want to automate the process of cloning your github repository, just type in the number of your repo (listed in terminal) and bam: you're done!
-
Python has to be installed
-
Pip (usually comes with python)
-
requests
lib to make the requests to the Github API-
To install it, just open up a terminal and type this:
pip install requests
-
**: VS Code as your IDE (if you wanna open it with code after it's cloned, totally optional tho)
-
Open
clone_repo.py
with VS Code (or another IDE of your preference) -
Change the
USERNAME
constant to your ownUSERNAME = "soliveirarm" # change to your own username
-
Run it with python, that's it!
-
By default the reposity is saved in '
Desktop/Projects
', if you want to change the thePROJECTS_PATH
constant to the path you want.PROJECTS_PATH = f"{Path.home()}/Desktop/Projects" # change if you want the clone repos on another folder

- ChatGPT basically made this version for me, I'm quite lazy these days, sorryyy 😝
- If you see anything weird, please create an issue so I can solve it, thankss