cdurau / Treehouse-Downloader

Download Courses for Offline Learning =)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Treehouse Downloader

  • Download Treehouse Tracks, Courses and Workshops for offline use.

  • You need an active account at teamtreehouse.com to download the courses.

  • NOTE Your library might have partnered with teamtreehouse.com to offer you free teamtreehouse.com account.

Features

  • Download
    • Courses
    • Tracks
    • Workshops
    • Practice Sessions
    • Instructions
    • Project Files
  • Auto recognize download type
  • Adapt folder structure accordingly

Requirements

  • Python3
  • ChromeWeb Driver (In your PATH)
  • BeautifulSoup
  • selenium
  • aria2

Installation

  • Install Python 3
  • Install ChromeWeb Driver and add it to your PATH (Version has to match your installed chrome browser version)
  • Install aria2
# open terminal or commandline
$ sudo apt-get install libxml2-dev libxslt1-dev -y
$ pip install -r requirements.txt

Configuration

  • Add your email, password and download path to the settings file data/settings.json
{
  "email": "treehouse-login",
  "password": "treehouse-password",
  "webdriver": "chromedriver",
  "download_folder": "PATH/TO/YOUR/DOWNLOAD/FOLDER/",
  "EXTERNAL_DL": "  --external-downloader aria2c --external-downloader-args '-j1 -x16 -s16 -k1M' "
}

Links to Download

  • Add the download links to Tracks, Courses, Workshops, etc. seperated by line to data/links.txt
  • Comments with "#" are possible

Usage

# open terminal or commandline
$ python treehouse.py

Acknowledgement

About

Download Courses for Offline Learning =)


Languages

Language:Python 100.0%