Skip to content

manupawickramasinghe/clone-github-starred

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

GitHub Starred Repository Cloner

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.

About

Run this Code to clone all the Repos you want to star

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages