mirror of
https://github.com/FliegendeWurst/KIT-ILIAS-downloader.git
synced 2024-08-28 04:04:18 +00:00
Update readme and changelog
This commit is contained in:
parent
1eb354865e
commit
a48060a9a5
@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
## [0.3.5]
|
||||
### Added
|
||||
- `--pass-path` option to get the password from [pass](https://www.passwordstore.org/) (PR [#33] by [@Ma27])
|
||||
|
||||
## [0.3.4]
|
||||
### Added
|
||||
- Display a warning if two or more courses/folders have the same name ([#31])
|
||||
@ -158,6 +162,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
## [0.1.0] - 2020-04-21
|
||||
(undocumented)
|
||||
|
||||
[#33]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/pull/33
|
||||
[#31]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/issues/31
|
||||
[#30]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/issues/30
|
||||
[#28]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/pull/28
|
||||
@ -180,7 +185,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
[@Craeckie]: https://github.com/Craeckie
|
||||
[@funnym0nk3y]: https://github.com/funnym0nk3y
|
||||
[@Ma27]: https://github.com/Ma27
|
||||
[Unreleased]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.4...HEAD
|
||||
[Unreleased]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.5...HEAD
|
||||
[0.3.5]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.5...v0.3.4
|
||||
[0.3.4]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.3...v0.3.4
|
||||
[0.3.3]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.2...v0.3.3
|
||||
[0.3.2]: https://github.com/FliegendeWurst/KIT-ILIAS-downloader/compare/v0.3.1...v0.3.2
|
||||
|
31
README.md
31
README.md
@ -35,8 +35,7 @@ $ KIT-ILIAS-downloader -o ./ILIAS/WS2021-HM1 --sync-url 'https://ilias.studium.k
|
||||
### Options
|
||||
|
||||
```
|
||||
$ KIT-ILIAS-downloader --help
|
||||
KIT-ILIAS-downloader 0.3.3
|
||||
KIT-ILIAS-downloader 0.3.5
|
||||
|
||||
USAGE:
|
||||
KIT-ILIAS-downloader [FLAGS] [OPTIONS] --output <output>
|
||||
@ -58,18 +57,19 @@ FLAGS:
|
||||
-v Verbose logging
|
||||
|
||||
OPTIONS:
|
||||
-j, --jobs <jobs> Parallel download jobs [default: 1]
|
||||
-o, --output <output> Output directory
|
||||
-P, --password <password> KIT account password
|
||||
-p, --proxy <proxy> Proxy, e.g. socks5h://127.0.0.1:1080
|
||||
--rate <rate> Requests per minute [default: 8]
|
||||
--sync-url <sync-url> ILIAS page to download
|
||||
-U, --username <username> KIT account username
|
||||
-j, --jobs <jobs> Parallel download jobs [default: 1]
|
||||
-o, --output <output> Output directory
|
||||
--pass-path <pass-path> Path inside `pass(1)` to the password for your KIT account
|
||||
-P, --password <password> KIT account password
|
||||
-p, --proxy <proxy> Proxy, e.g. socks5h://127.0.0.1:1080
|
||||
--rate <rate> Requests per minute [default: 8]
|
||||
--sync-url <sync-url> ILIAS page to download
|
||||
-U, --username <username> KIT account username
|
||||
```
|
||||
|
||||
### .iliasignore
|
||||
|
||||
.gitignore syntax can be used in a `.iliasignore` file: (located in the output folder)
|
||||
.gitignore syntax can be used in a `.iliasignore` file: (located in the output directory)
|
||||
```ignore
|
||||
# example 1: only download a single course
|
||||
/*/
|
||||
@ -81,18 +81,25 @@ OPTIONS:
|
||||
|
||||
### Credentials
|
||||
|
||||
You can use the `--user` and `--keyring` options to get/store the password using the system password store.
|
||||
If you use Linux, you'll have to compile from source to be able to use this option.
|
||||
You can use the `--user` and `--keyring` options to get/store the password using the system password store:
|
||||
```
|
||||
$ KIT-ILIAS-downloader -U uabcd --keyring [...]
|
||||
```
|
||||
|
||||
If you use [pass](https://www.passwordstore.org/), you can use the `--pass-path` option to specify which password store entry to use:
|
||||
```
|
||||
$ KIT-ILIAS-downloader -U uabcd --pass-path edu/kit/uskyk [...]
|
||||
```
|
||||
|
||||
You can also save your username and password in a `.iliaslogin` file: (located in the output folder)
|
||||
```
|
||||
username
|
||||
password
|
||||
```
|
||||
|
||||
When running the downloader multiple times in a short period of time, you may want to use the `--keep-session` flag.
|
||||
If specified, the downloader will save and restore session cookies (`.iliassession` file in the output directory).
|
||||
|
||||
### Renaming course names (0.2.24+)
|
||||
If you'd like to avoid unwieldy course names (e.g. "24030 – Programmierparadigmen"), you can create a `course_names.toml` file in the output directory. It should contain the desired mapping of course names to folder names, e.g.:
|
||||
```
|
||||
|
@ -74,7 +74,7 @@ pub struct Opt {
|
||||
#[structopt(short = "P", long)]
|
||||
pub password: Option<String>,
|
||||
|
||||
/// Path inside `pass(1)` to the password for shibboleth.
|
||||
/// Path inside `pass(1)` to the password for your KIT account
|
||||
#[structopt(long)]
|
||||
pub pass_path: Option<String>,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user