{"id":21508588,"url":"https://github.com/soykot2910/github-content-downloader","last_synced_at":"2026-01-31T14:31:34.029Z","repository":{"id":261916234,"uuid":"885714891","full_name":"soykot2910/github-content-downloader","owner":"soykot2910","description":"Download any file or entire directory fro GitHub repositories without cloning - perfect for selectively downloading specific content","archived":false,"fork":false,"pushed_at":"2024-11-29T09:17:16.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T21:46:37.024Z","etag":null,"topics":["content-download","directory-download","download","downloader","folder-downloader","github"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soykot2910.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-09T07:36:55.000Z","updated_at":"2024-11-29T09:17:19.000Z","dependencies_parsed_at":"2025-04-09T16:43:28.325Z","dependency_job_id":"67ecbd27-91df-4d36-ab68-11527ce71305","html_url":"https://github.com/soykot2910/github-content-downloader","commit_stats":null,"previous_names":["soykot2910/github-folder-downloader","soykot2910/github-content-downloader"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/soykot2910/github-content-downloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soykot2910%2Fgithub-content-downloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soykot2910%2Fgithub-content-downloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soykot2910%2Fgithub-content-downloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soykot2910%2Fgithub-content-downloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soykot2910","download_url":"https://codeload.github.com/soykot2910/github-content-downloader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soykot2910%2Fgithub-content-downloader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28945601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["content-download","directory-download","download","downloader","folder-downloader","github"],"created_at":"2024-11-23T21:07:03.708Z","updated_at":"2026-01-31T14:31:34.009Z","avatar_url":"https://github.com/soykot2910.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Content Downloader\n\nA powerful command-line tool to download files and folders from GitHub repositories. Download any file or entire directory from GitHub repositories without cloning - perfect for selectively downloading specific content.\n\n## Features\n\n- Download single files from GitHub repositories\n- Download entire folders recursively\n- Download complete repositories\n- Simple command-line interface (`ghcd`)\n- Support for both file URLs (blob) and folder URLs (tree)\n- Customizable download location\n- No authentication required for public repositories\n\n## Installation\n\n### Option 1: Install from PyPI\n\n```bash\npip install github-content-downloader\n```\n\n### Option 2: Install from source\n\n```bash\n# Clone the repository\ngit clone https://github.com/soykot2910/github-content-downloader.git\n\n# Navigate to the project directory\ncd github-content-downloader\n\n# Install the package\npip install .\n```\n\n## Usage\n\n### Command Line Interface\n\n1. Download a complete repository:\n```bash\nghcd https://github.com/username/repository\n```\nExample:\n```bash\nghcd https://github.com/tensorflow/tensorflow\n```\n\n2. Download a specific folder:\n```bash\nghcd https://github.com/username/repository/tree/branch/folder\n```\nExample:\n```bash\nghcd https://github.com/tensorflow/tensorflow/tree/master/tensorflow/python\n```\n\n3. Download a single file:\n```bash\nghcd https://github.com/username/repository/blob/branch/path/to/file\n```\nExample:\n```bash\nghcd https://github.com/tensorflow/tensorflow/blob/master/README.md\n```\n\n4. Specify custom output directory:\n```bash\nghcd -o ./my-downloads \u003cgithub-url\u003e\n```\n\n5. Interactive mode (if no URL provided):\n```bash\nghcd\n```\n\n### Command Line Options\n\n```bash\nghcd --help\n```\n\nAvailable options:\n- `-o, --output`: Specify output directory (default: ./downloaded_files)\n- `-h, --help`: Show help message\n\n### Python Package Usage\n\nYou can also use it as a Python package in your code:\n\n```python\nfrom github_downloader import download_from_github\n\n# Download complete repository\ndownload_from_github(\"https://github.com/username/repository\")\n\n# Download specific folder\ndownload_from_github(\n    \"https://github.com/username/repository/tree/master/docs\",\n    dest_folder=\"./my-downloads\"\n)\n\n# Download single file\ndownload_from_github(\n    \"https://github.com/username/repository/blob/master/README.md\"\n)\n```\n\n## URL Format Examples\n\n### 1. Complete Repository\n```\nhttps://github.com/username/repository\n```\nDownloads the entire repository from the default branch (usually 'master' or 'main').\n\n### 2. Specific Folder\n```\nhttps://github.com/username/repository/tree/branch/path/to/folder\n```\nDownloads only the specified folder and its contents.\n\n### 3. Single File\n```\nhttps://github.com/username/repository/blob/branch/path/to/file\n```\nDownloads only the specified file.\n\n## Common Issues and Solutions\n\n1. **Permission Error**: If you get a permission error while downloading, make sure you have write permissions in the output directory.\n\n2. **Invalid URL Format**: Make sure your GitHub URL follows one of these patterns:\n   - Repository: `https://github.com/username/repo`\n   - Folder: `https://github.com/username/repo/tree/branch/path`\n   - File: `https://github.com/username/repo/blob/branch/path`\n\n3. **Download Failed**: If downloads fail, check:\n   - Your internet connection\n   - The repository is public and accessible\n   - The URL is correct and the resource exists\n\n## Requirements\n\n- Python 3.6 or higher\n- `requests` library (automatically installed with the package)\n\n## Development\n\nWant to contribute? Great! Here's how:\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Install development dependencies:\n```bash\npip install -e .\n```\n4. Make your changes\n5. Commit your changes (`git commit -m 'Add some amazing feature'`)\n6. Push to the branch (`git push origin feature/amazing-feature`)\n7. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Author\n\n- Md.Soykot\n- Email: md.soykot2910@gmail.com\n- GitHub: [@soykot2910](https://github.com/soykot2910)\n\n## Support\n\nIf you encounter any issues or have questions, please:\n1. Check the [Common Issues](#common-issues-and-solutions) section\n2. Open an issue on GitHub\n3. Contact the author via email\n\n## Acknowledgments\n\n- Thanks to GitHub for providing their API\n- Inspired by the need to download specific parts of repositories without cloning","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoykot2910%2Fgithub-content-downloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoykot2910%2Fgithub-content-downloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoykot2910%2Fgithub-content-downloader/lists"}