Skip to content

Latest commit

 

History

History
80 lines (51 loc) · 2.55 KB

README.md

File metadata and controls

80 lines (51 loc) · 2.55 KB

General info

hit-dl is a software meant for HIT students, to download an entire course from moodle for offline reading.

Usage

usage: hit-dl -u USERNAME -p PASSWORD URL [URL1 URL2...]

 e.g.: hit-dl -u student -p pass123 https://md.hit.ac.il/course/view.php?id=12345

positional arguments:
  URL                     the course/s url/s you want to download

optional arguments:
  -h, --help              show this help message and exit
  -u, --username          your moodle username
  -p, --password          your moodle password
  -v, --verbose           print debugging information
  -r, --robots-txt        disobey ROBOTS.txt
  -a, --user-agent        override the default user agent
  -c, --cookies-disabled  disable cookies

Installation

Linux

Method 1: Using curl

sudo curl -L https://github.com/ItaiShek/hit-dl/releases/download/v1.0.0/hit-dl -o /usr/local/bin/hit-dl
sudo chmod a+rx /usr/local/bin/hit-dl

Method 2: Using wget

sudo wget https://github.com/ItaiShek/hit-dl/releases/download/v1.0.0/hit-dl -O /usr/local/bin/hit-dl
sudo chmod a+rx /usr/local/bin/hit-dl

Method 3: Direct download

Download it from here.

Method 4: Clone repository

Requires: python >= 3.6

git clone https://github.com/ItaiShek/hit-dl.git && cd hit-dl
python -m pip install -r requirements.txt
Windows

Direct download

Download it from here.

You can use the run script instead of using the software from the terminal, just make sure it's in the same folder as "hit-dl.exe".

Add the file to any folder except "C:\Windows\System32", and add it to PATH, in order to run the software from any folder.