https://github.com/jalkhov/octodir
Download individual directorys from GitHub repository
https://github.com/jalkhov/octodir
directory download github
Last synced: 5 months ago
JSON representation
Download individual directorys from GitHub repository
- Host: GitHub
- URL: https://github.com/jalkhov/octodir
- Owner: Jalkhov
- License: mit
- Created: 2021-09-01T21:20:18.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T23:03:49.000Z (over 1 year ago)
- Last Synced: 2025-04-06T13:42:11.810Z (about 1 year ago)
- Topics: directory, download, github
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Tool for downloading directories from Github repositories.
# Installation
```
$ pip install octodir
```
# Use
## From the console
```
$ octodir
```
**You will be asked for the following data:**
* **Full folder url:** Direct url to the target folder
* **Example:** `https://github.com/Jalkhov/octodir/tree/stable/octodir`
* **Output folder**: Absolute path of the output directory
* You can enter a dot to download in the current working directory
* **API key**: Personal Github Token for prevent requests limit
## In code
```python
from octodir import Octodir
target = 'https://github.com/Jalkhov/Octodir/tree/stable/octodir'
folder = '.' # Current working directory
api_key = ''
Octo = Octodir(target, folder, api_key=api_key)
Octo.dowload_folder()
```
# Support me <3
