2.0.0 • Published 4 years ago
frontend-master-downloader v2.0.0
Frontend-Master-Downloader
Download content from frontendmaster with puppeteer
Usage
Requirements
- Node v7.6.0 or greater
- Google Chrome
- ChromeDriver - WebDriver for Chrome
The latest version of Chrome webdriver can be found at link below and the Setup instruction can also be found at the same page,
https://sites.google.com/a/chromium.org/chromedriver/downloads
Setup Chromedriver (macOS)
cp chromedriver /usr/local/bin/chromedriver
Try it
npm install frontend-master-downloader -g
Set Cookie
Your first need to set a cookie. Use the chrome or firefox extension EditCookie.
Log to frontendmaster with your login and password and use this extension to export the cookie. Save in the current directory to the name cookie.json
frontend-master-downloader -u <COURSE_NAME> -i <COURSE_ID(optional)> -d <DIRECTORY(optional)>
Directory is optional, if not provided, the script will create a Download directory in the current location.
Example
frontend-master-downloader -c leveldb-crypto