Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.48 KB

File metadata and controls

57 lines (43 loc) · 1.48 KB

GitHub Starred Repository Cloner

Python CI

This Python script automates the process of cloning all repositories starred by a GitHub user. Simply provide your GitHub username and Personal Access Token (PAT), and it will fetch and clone the repositories into a local directory.

Features

  • Automatically fetches starred repositories.
  • Clones each repository locally.
  • Skips already cloned repositories to avoid duplication.

Requirements

  • Python 3.x
  • requests library (pip install requests)
  • GitPython library (pip install gitpython)
  • A GitHub Personal Access Token (PAT)

Installation & Usage

1. Clone the Repository

git clone https://github.com/manupawickramasinghe/clone-github-starred.git
cd clone-github-starred

2. Install Dependencies

pip install -r requirements.txt

3. Configure Your Credentials

Edit github_clone.py and set your GitHub username and PAT:

username = 'Enter Your Username'
token = 'Enter Your PAT'

4. Run the Script

Execute the script to clone starred repositories:

python github_clone.py

Troubleshooting

  • Ensure your PAT has the necessary permissions to read repository data.
  • Verify your network connection if cloning fails.
  • If repositories already exist, the script will skip them.

Contributing

Feel free to submit issues or pull requests to enhance the functionality.

License

This project is licensed under the MIT License.