Downloader and scraper for educative.io for pro members
Requirements
- nodejs version >= 18
Install
npm i -g eddown
without Install
npx eddown
CLI
Usage
$ eddown [CourseUrl]
Options
--all, -a Get all courses from particular school or provider.
--email, -e Your email.
--password, -p Your password.
--directory, -d Directory to save.
--file, -f Location of the file where are the courses
--overwrite, -o Overwrite if resource exists (values: 'yes' or 'no'), default value is 'no'
--headless, -h Enable headless (values: 'yes' or 'no'), default value is 'yes'
--html, -t Enable html download (values: 'yes' or 'no'), default value is 'yes'
--concurrency, -c
Examples
$ eddown
$ eddown -a
$ eddown [url] [-l url...] [-e user@gmail.com] [-p password] [-d dirname] [-c number] [-o yes or no] [-h yes or no] [-t yes or no]
Log and debug
This module uses debug to log events. To enable logs you should use environment variable DEBUG
.
Next command will log everything from scraper
export DEBUG=scraper*; eddown
Module has different loggers for levels: scraper:error
, scraper:warn
, scraper:info
, scraper:debug
, scraper:log
. Please read debug documentation to find how to include/exclude specific loggers.
License
MIT