GitHub Extractor
Extract download files or raw links from GitHub repositories and folders.
All scripts are in this skill's scripts/ directory. Run them directly — shebang handles the runtime.
Scripts
| Script | Purpose | Runtime |
|---|---|---|
extractor_githubRawLinks.py | GitHub URL → raw link list | python3 (shebang) |
extractor_githubRawFiles.py | GitHub URL → file download | python3 (shebang) |
1. GitHub File Download
Download files from a specific GitHub directory — no full clone needed.
./scripts/extractor_githubRawFiles.py <GitHub URL> [output_dir]
Options:
output_dir: Save directory (default: current folder)GITHUB_TOKENenv var: Increase rate limit (60 → 5000 req/hour)
Default ignore patterns:
- Paths:
node_modules/,.git/,__pycache__/,dist/,build/ - Extensions:
.pyc,.pyo,.exe,.dll,.so
2. GitHub Raw Links
Get raw URLs for all files in a GitHub repository or directory.
./scripts/extractor_githubRawLinks.py <GitHub URL>
Input examples:
https://github.com/owner/repohttps://github.com/owner/repo/tree/main/src
Output:
- Raw URL list to stdout
- Auto-copy to clipboard (pbcopy)
Dependencies
extractor_githubRaw.py:*
- python3
- requests (
pip install requests)