This script scrapes all repository links from a specified GitHub user's profile and clones them into a local directory.
- Python 3.x
- Git
- Required Python packages:
requests
beautifulsoup4
-
Install Git:
- On Ubuntu/Debian:
sudo apt update sudo apt install git
- On macOS:
brew install git
- On Windows: Download and install Git from git-scm.com.
- On Ubuntu/Debian:
-
Install Python packages:
pip install requests beautifulsoup4
- Save the script as
clone_repos.py
. - Run the script:
python clone_repos.py
The script will create a directory named after the GitHub user and clone all their repositories into this directory.
- Ensure Git is installed and accessible from your PATH.
- Verify the GitHub username and the URL format.
- Handle potential rate limits imposed by GitHub.