Programm zum Flotten, Einfachen Runterladen von Dateien
  • Python 86.7%
  • PHP 12.7%
  • Nix 0.4%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
I-Al-Istannen 12128afa31
Some checks failed
build-and-release / test (push) Has been cancelled
build-and-release / build-python (push) Has been cancelled
build-and-release / build (macos-15-intel, 3.11) (push) Has been cancelled
build-and-release / build (macos-latest, 3.11) (push) Has been cancelled
build-and-release / build (ubuntu-latest, 3.11) (push) Has been cancelled
build-and-release / build (windows-latest, 3.11) (push) Has been cancelled
build-and-release / release (push) Has been cancelled
Bump version to 3.10.1
2026-10-31 20:05:12 +01:00
.github chore: add tests to GitHub actions 2026-10-25 22:49:02 +01:00
PFERD fix(ilias): find opencast videos only once 2026-10-29 20:53:31 +01:00
scripts chore: Fix pyrefly python version broken by scripts/bump-version 2026-10-25 23:53:49 +01:00
tests fix(ilias): find opencast videos only once 2026-10-29 20:53:31 +01:00
.git-blame-ignore-revs Ignore reformat in git blame 2025-10-19 15:48:29 +02:00
.gitignore test: add end-to-end tests against a local ILIAS instance 2026-10-25 22:34:48 +01:00
CHANGELOG.md Bump version to 3.10.1 2026-10-31 20:05:12 +01:00
CONFIG.md feat: Add crawler for LFCPS course materials (#151) 2026-10-26 21:44:09 +01:00
DEV.md Switch to uv 2025-10-19 16:27:54 +02:00
flake.lock chore: update flake.nix and flake.lock 2026-10-25 23:59:57 +01:00
flake.nix chore: update flake.nix and flake.lock 2026-10-25 23:59:57 +01:00
LICENSE Sanitize Unicode normalization form for file and directory names (#141) 2026-06-19 19:12:05 +02:00
pferd.py Document why /pferd.py exists 2021-05-25 13:31:29 +02:00
pyproject.toml Bump version to 3.10.1 2026-10-31 20:05:12 +01:00
README.md Add --login-type to the ilias-web command (#148) 2026-10-25 23:25:26 +01:00
uv.lock Bump version to 3.10.1 2026-10-31 20:05:12 +01:00

PFERD

Programm zum Flotten, Einfachen Runterladen von Dateien

Other resources:

Installation

Direct download

Binaries for Linux, Windows and Mac can be downloaded directly from the latest release.

With pip

Ensure you have at least Python 3.11 installed. Run the following command to install PFERD or upgrade it to the latest version:

# install from GitHub
$ pip install --upgrade git+https://github.com/Garmelon/PFERD@latest
# install from PyPi
$ pip install PFERD

The use of venv is recommended.

With package managers

Unofficial packages are available for:

See also PFERD's repology page.

Basic usage

PFERD can be run directly from the command line with no config file. Run pferd -h to get an overview of available commands and options. Run pferd <command> -h to see which options a command has.

For example, you can download your personal desktop from the KIT ILIAS like this:

$ pferd kit-ilias-web desktop <output_directory>

Also, you can download most ILIAS pages directly like this:

$ pferd kit-ilias-web <url> <output_directory>

PFERD supports other ILIAS instances as well, using the ilias-web crawler (see the config section on ilias-web for more detail on the base-url, client-id and login-type parameters). Without --client-id, shibboleth login is used. Use --login-type to choose explicitly:

$ pferd ilias-web \
    --base-url https://ilias.my-university.example \
    --client-id My_University desktop \
    <output_directory>

However, the CLI only lets you download a single thing at a time, and the resulting command can grow long quite quickly. Because of this, PFERD can also be used with a config file.

To get started, just take a command you've been using and add --dump-config directly after pferd, like this:

$ pferd --dump-config kit-ilias-web <url> <output_directory>

This will make PFERD write its current configuration to its default config file path. You can then run pferd without a command and it will execute the config file. Alternatively, you can use --dump-config-to and specify a path yourself. Using --dump-config-to - will print the configuration to stdout instead of a file, which is a good way to see what is actually going on when using a CLI command.

Another good way to see what PFERD is doing is the --explain option. When enabled, PFERD explains in detail what it is doing and why. This can help with debugging your own config.

If you don't want to run all crawlers from your config file, you can specify the crawlers you want to run with --crawler or -C, like this:

$ pferd -C crawler1 -C crawler2

Advanced usage

PFERD supports lots of different options. For example, you can configure PFERD to use your system's keyring instead of prompting you for your username and password. PFERD also supports transformation rules that let you rename or exclude certain files.

For more details, see the comprehensive config format documentation.

Example

This example downloads a few courses from the KIT ILIAS with a common keyring authenticator. It reorganizes and ignores some files.

[DEFAULT]
# All paths will be relative to this.
# The crawler output directories will be <working_dir>/Foo and <working_dir>/Bar.
working_dir = ~/stud
# If files vanish from ILIAS the local files are not deleted, allowing us to
# take a look at them before deleting them ourselves.
on_conflict = no-delete

[auth:ilias]
type = keyring
username = foo

[crawl:Foo]
type = kit-ilias-web
auth = auth:ilias
# Crawl a course by its ID (found as `ref_id=ID` in the URL)
target = 1234567

# Plaintext files are easier to read by other tools
links = plaintext

transform =
  # Ignore unneeded folders
  Online-Tests --> !
  Vorlesungswerbung --> !

  # Rename folders
  Lehrbücher --> Vorlesung
  # Note the ">>" arrow head which lets us apply further rules to files moved to "Übung"
  Übungsunterlagen -->> Übung

  # Move exercises to own folder. Rename them to "Blatt-XX.pdf" to make them sort properly
  "Übung/(\d+). Übungsblatt.pdf" -re-> Blätter/Blatt-{i1:02}.pdf
  # Move solutions to own folder. Rename them to "Blatt-XX-Lösung.pdf" to make them sort properly
  "Übung/(\d+). Übungsblatt.*Musterlösung.pdf" -re-> Blätter/Blatt-{i1:02}-Lösung.pdf

  # The course has nested folders with the same name - flatten them
  "Übung/(.+?)/\\1" -re-> Übung/{g1}

[crawl:Bar]
type = kit-ilias-web
auth = auth:ilias
target = 1337420