Skip to content

muhamed-didovic/vsdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm Downloads Hits license

Downloader and scraper for vueschool.io

Requirement (ensure that you have it installed)

Install

npm i -g vsdown

without Install

npx vsdown

CLI

Usage
    $ vsdown [CourseUrl]

Options
    --all, -a           Get all courses.
    --email, -e         Your email.
    --password, -p      Your password.
    --directory, -d     Directory to save.
    --file, -f          Location of the file where are the courses (values: 'yes' or 'no'), default value is 'no'
    --overwrite, -o     Overwrite if resource exists (values: 'yes' or 'no'), default value is 'no'
    --markdown, -m      Save each lesson's description into md file (values: 'yes' or 'no'), default: yes
    --headless, -h      Enable headless (values: 'yes' or 'no'), default value is 'yes'
    --html, -l          Enable html download (values: 'yes' or 'no'), default value is 'yes'
    --free, -f          Download only free courses or all (values: 'yes' or 'no'), default value is 'yes'
    --concurrency, -c

Examples
    $ vsdown
    $ vsdown -a
    $ vsdown [url] [-e user@gmail.com] [-p password] [-d dirname] [-c number] [-f path-to-file] [-o yes/no] [-m yes/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*; vsdown

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