RepoRipper - a script to download whatever repo of yours to a .txt file , so you can share it with AI Models!
MIT License
[!CAUTION] Disclaimer: This code is provided "as is" without any warranties, express or implied. The author is not responsible for any damages resulting from its use.
This repository contains a Python script, RepoRipper.py, downloads your whole git repo to a .txt file so you can share it with any AI model.
OpenAI | Claude | Gemini
MODEL | WEBSITE |
---|---|
OpenAI [^1] | https://openai.com/chatgpt |
Claude [^2] | https://claude.ai/ |
Gemini [^3] | dont know why their link so long |
[!IMPORTANT] Is this Legal? As to my research I believe this code is in the clear [^4] [^5] [^6] [^7]
[!CAUTION] Be aware that large repositories may encounter rate limits when using this script due to GitHub API restrictions. This is an inherent limitation and not a fault of the script itself.
Requirements:
requests
librarybase64
librarydotenv
librarytqdm
librarycolorama
librarySetup:
Create a .env
file:
In the same directory as the script, create a file named .env
.
Add the following line to the file, replacing the placeholder with your actual GitHub personal access token:
GITHUB_TOKEN=your_github_token
Install dependencies:
Open a terminal in the script's directory and run the following command:
pip install requests base64 dotenv tqdm colorama
Usage:
Run the script:
Execute the script using:
python3 reporipper.py https://github.com/yourname/yourrepo
** Select an ouput directory:**
python3 reporipper.py https://github.com/yourname/yourrepo -o /path/to/save/directory
Custom Exclusions List:
python3 reporipper.py https://github.com/yourname/yourrepo -e /path/to/exclusion_list.txt
Wait for download:
SAVE_DIRECTORY
in the .env
file.Customization:
exclusion_list.txt
file to add or remove file types and directories to be excluded by default.SAVE_DIRECTORY
environment variable in the .env
file to specify where the downloaded text file should be saved.[!NOTE]
- Make sure your GitHub personal access token` has the necessary permissions to access the repository.
- The script will skip binary or non-UTF-8 files.
- The script will overwrite any existing file with the same name in the save directory.
[^1]: here is the raw link lol https://openai.com/chatgpt
[^2]: here is the raw link lol https://claude.ai/
[^3]: here is the raw link lol https://gemini.google.com/?utm_source=google&utm_medium=cpc&utm_campaign=2024enUS_gemfeb&gad_source=1&gclid=CjwKCAjwh4-wBhB3EiwAeJsppOWzLIcw-EAxub7vOFjZb_hcQoMWw1sPL-BPdHTQ99DZnQtS5NzRnhoC41oQAvD_BwE
[^4]: Legal
https://docs.github.com/en/site-policy/github-terms/github-community-guidelines
[^5]: Legal
https://docs.github.com/en/site-policy/github-terms/github-open-source-applications-terms-and-conditions
[^6]: Legal
https://docs.github.com/en/site-policy/github-terms/github-marketplace-developer-agreement
[^7]: Legal
https://docs.github.com/en/site-policy/github-terms/github-terms-of-service