Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lorenzo9uerra/virtuale-dl
Simple script to download every file of a course from https://virtuale.unibo.it
https://github.com/lorenzo9uerra/virtuale-dl
Last synced: about 1 month ago
JSON representation
Simple script to download every file of a course from https://virtuale.unibo.it
- Host: GitHub
- URL: https://github.com/lorenzo9uerra/virtuale-dl
- Owner: lorenzo9uerra
- License: gpl-3.0
- Created: 2022-03-22T20:37:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-18T20:12:05.000Z (over 2 years ago)
- Last Synced: 2023-11-23T16:33:55.518Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 33.2 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# virtuale-dl
Extremely simple script to download every file of a course or multiple courses from https://virtuale.unibo.it
### Usage
The script needs the IDs of the courses, session cookies and the path where the
directories will be downloaded. You can either set them from command line with
options or editing the script directly.
```
Usage: ./virtuale-dl.sh [-c COOKIES] [-i COURSE_IDS] [-d DIR]
```
You can get the cookies in the right format by copying the request for
curl from the browser and then getting the `Cookie:` part of the header.Example: `"Cookie: ApplicationGatewayAffinity=02138802938409f092;
MoodleSession=92837492834029384d;
_shibsession_6465666019283019283019287019238=_029984029384026383039384"`For the `COURSE_IDS` variable use one or more IDs of the courses you want to
download files from, you can get them from the URL of the course. For example
the ID on https://virtuale.unibo.it/course/view.php?id=112233 is `112233`.
You can specify more to download files from more courses. (i.e. `ID="112233 223344"`)Finally the `DIR` variable sets the path where the downloaded directories will be stored.