Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

polito_dl - Command-line tool and library to download Polytechnic of Turin's online lessons from didattica.polito.it

Installation

Ubuntu or Debian:

pip3 install polito_dl

Windows:

Install Python (don't forget to check the "ADD TO PATH" option).
Then open the command prompt and type:

pip3 install polito_dl

Description

polito_dl is a CLI tool and python libray to download video lessons from didattica.polito.it with a simple and powerful command-line interface. It features a download progress bar and possibility to resume downloads.
URL can be the link of a single videolesson or the course's on-line lessons main page.

CLI Interface

$ polito_dl
Usage: polito_dl [OPTIONS] COMMAND [ARGS]...

Options:
  --username TEXT  Do not prompt for username.
  --password TEXT  Do not prompt for password. (Warning: this could be
                   insecure, use it only if you know what you are doing.)

  --help           Show this message and exit.

Commands:
  download           Download lecture(s).
  print-course-json  Print course information in JSON format.


Download lectures

$ polito_dl download --help
Usage: polito_dl download [OPTIONS] URL

  Download lecture(s).

Options:
  --all                          Download all course's lectures.
  --format [video|iphone|audio]  Select media format to download (default:
                                 video).

  --chunk-size INTEGER           Set downloader chunk size (default: 1MB).
  --help                         Show this message and exit.

$ polito_dl download "https://didattica.polito.it/portal/pls/portal/sviluppo.videolezioni.vis?cor=456&arg=Lezioni on-line&lez=19649"
Username: s424242
Password: 
Algoritmi_e_programmazione_lez_02.mp4  [##################------------------]   52%  00:00:04

Print course information

$ polito_dl print-course-json --help
Usage: polito_dl print-course-json [OPTIONS] URL

  Print course information in JSON format.

Options:
  --help  Show this message and exit.

$ polito_dl print-course-json "https://didattica.polito.it/portal/pls/portal/sviluppo.videolezioni.vis?cor=456&arg=Lezioni on-line&lez=19649"
Username: s424242
Password: 
{
    "name": "Algoritmi e programmazione",
    "professor": "Paolo Enrico CAMURATI",
    "lectures": [
        {
            "name": "2020_Lezione 01",
            "date": "30/09/2019",
            "path": "sviluppo.videolezioni.vis?cor=456&arg=Lezioni%20on-line&lez=19638",
            "topics": [
                "Introduzione al corso"
            ]
        },
        {
            "name": "2020_Lezione 02",
            "date": "30/09/2019",
            "path": "sviluppo.videolezioni.vis?cor=456&arg=Lezioni%20on-line&lez=19649",
            "topics": [
                "L'essenziale del linguaggio C (parte 1)"
            ]
        },
    ]
}

Python library

Check polito_dl/client.py.

Metadata

Release files for polito-dl 2.0.0a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polito-dl 2.0.0a0
File Size Uploaded Provenance Actions
polito_dl-2.0.0a0.tar.gz 5.4 kB Without provenance Details for polito_dl-2.0.0a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polito-dl 2.0.0a0
File Interpreter ABI Platform Actions
polito_dl-2.0.0a0-py3-none-any.whl Python 3 none any Details for polito_dl-2.0.0a0-py3-none-any.whl

Total release size: 24.5 kB

Release files / polito_dl-2.0.0a0.tar.gz

Download URL polito_dl-2.0.0a0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
25925be3cc51eb14aad81105f85dbabb802680783e4e4573f0793d1c48b198ba
BLAKE2b-256 checksum
How to use checksums
1b0c1a629730b8800783e66a716260891ec521f0c09b3d4312a4ba73ce3cd053
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

Release files / polito_dl-2.0.0a0-py3-none-any.whl

Download URL polito_dl-2.0.0a0-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e454f42a8e5d3c888c791c8b2d9de3fc1c41c788839bedd575564298f23b3b7d
BLAKE2b-256 checksum
How to use checksums
779bfa60286964306dd5bf57a9d6600d38ab77791a165da4646a1735ecd99780
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.43.0 CPython/3.7.7

Security for polito-dl 2.0.0a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page