Skip to main content

Tool for downloading directories from Github repositories

Project description

Tool for downloading directories from Github repositories.

ALERT: Not authenticated requests have limits, fixing for add API Key support.

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

from octodir import Octodir

target = 'https://github.com/Jalkhov/Octodir/tree/stable/octodir'
folder = '.' # Current working directory
api_key = '<PERSONAL_GITHUB_TOKEN>'

Octo = Octodir(target, folder, api_key=api_key)
Octo.dowload_folder()

Support me <3

Buy Me A Coffee

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

octodir-1.1.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page