https://github.com/muhamed-didovic/vsdown
vueschool-downloader
https://github.com/muhamed-didovic/vsdown
downloader scraper vueschool vueschool-downloader vueschool-scraper
Last synced: 5 months ago
JSON representation
vueschool-downloader
- Host: GitHub
- URL: https://github.com/muhamed-didovic/vsdown
- Owner: muhamed-didovic
- License: mit
- Created: 2022-04-25T09:57:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-23T16:35:06.000Z (about 1 year ago)
- Last Synced: 2024-10-28T23:43:43.843Z (6 months ago)
- Topics: downloader, scraper, vueschool, vueschool-downloader, vueschool-scraper
- Language: JavaScript
- Homepage:
- Size: 2.17 MB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/vsdown)
[](https://www.npmjs.org/package/vsdown)
[](https://hits.seeyoufarm.com)
[](https://github.com/muhamed-didovic/vsdown/blob/main/LICENSE)# Downloader and scraper for vueschool.io
## Requirement (ensure that you have it installed)
- Node 18
- yt-dlp (https://github.com/yt-dlp/yt-dlp)## Install
```sh
npm i -g vsdown
```#### without Install
```sh
npx vsdown
```## CLI
```sh
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, -cExamples
$ vsdown
$ vsdown -a
$ vsdown [url] [-e [email protected]] [-p password] [-d dirname] [-c number] [-f path-to-file] [-o yes/no] [-m yes/no]
```## Log and debug
This module uses [debug](https://github.com/visionmedia/debug) to log events. To enable logs you should use environment variable `DEBUG`.
Next command will log everything from `scraper`
```bash
export DEBUG=scraper*; vsdown
```Module has different loggers for levels: `scraper:error`, `scraper:warn`, `scraper:info`, `scraper:debug`, `scraper:log`. Please read [debug](https://github.com/visionmedia/debug) documentation to find how to include/exclude specific loggers.
## License
MIT