Skip to main content

Linkedin Learning Video Downloader CLI Tool

Project description

Table of Contents

Linkedin Learning Video Downloader (LLVD) download links

Downloads Open Source Love Open Source Love

Features

Status Feature
cookie-based authentication
download by learning path
download a course and all its exercises
group videos by chapters
subtitles
nice progress bar
resume failed downloads
skip already downloaded videos
set video format (360p, 540p, 720p)
all platforms

Prerequisites

Installation

$ pip --no-cache-dir install llvd

If you have multiple versions of python installed in your system, use pip3 instead.

$ pip3 --no-cache-dir install llvd

Running from local installation

llvd --help
llvd -c "course-slug" -r 720

Running from docker container

# You will need to either use `docker cp` to get the course or mount it when running.
docker run ghcr.io/knowbee/llvd:master -c "course-slug" -r 720

Windows Users

When you get 'llvd' is not recognized as an internal or external command after successfully installing llvd, run python3 -m llvd <flags>

Common Questions

How do I find the course slug?

  1. Click on the desired course
  2. Your URl will look something like, https://www.linkedin.com/learning/l-essentiel-d-asp-dot-net-core-pour-dot-net-5
    • The course slug is: l-essentiel-d-asp-dot-net-core-pour-dot-net-5

How do I setup cookie-based authentication?

  1. Click on the options in Google Chrome (top right with 3 vertical dots).
  2. Click on More tools -> Developer tools
    • You can also reach here by using the keyboard combination: ctrl+shift+I).
  3. Now once you’ve gained access to the developer tools, navigate to the Application tab, and copy the value of two cookies named li_at and JSESSIONID
  4. Create a file named cookies.txt and place it in the folder you want to download your courses to
  5. Open the cookies.txt file and paste in the values of li_at and JSESSIONID
li_at=xxxxx
JSESSIONID="ajax:xxxxxx"

How do I setup header-based corporate account access?

If you have a corporate connected account you can fix the download issue by using a headers.txt as per below.

  1. Create a file named headers.txt and place it in the folder you want to download your courses to
  2. Right click on the page and select view source
    • You can also reach here by using the keyboard combination: ctrl+U.
  3. Search for enterpriseProfileHash using ctrl+F
  4. enterpriseProfileHash&quot;:&quot;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&quot;,&quot; copy the code between the double &quot;
5. Open the `headers.txt` file and paste in the values of `x-li-identity` from the above.
x-li-identity=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 

Examples

Accessing llvd documentation

$ llvd --help

Using cookie-based authentication

$ llvd -c "course-slug" --cookies

Using header-based authentication

Has to use cookies in conjection with headers

$ llvd -c "course-slug" --cookies --headers

Download a course at a specific resolution

$ llvd -c "course-slug" -r 720

Note: The default is set to 720.

Download a course with subtitles

    $ llvd -c "course-slug" --caption

or

    $ llvd -c "course-slug" -ca

Download a course path with throttling between 10 to 30 seconds

To avoid rate limits because of downloading a lot of videos, use the following:

$ llvd -p "path-slug" -t 10,30

Screenshots

Author

Igwaneza Bruce

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llvd-3.0.8.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

llvd-3.0.8-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file llvd-3.0.8.tar.gz.

File metadata

  • Download URL: llvd-3.0.8.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for llvd-3.0.8.tar.gz
Algorithm Hash digest
SHA256 c4b7bed62e371a5fac3b683f328f26a48351f6ea012f2608caf2a341b103ee54
MD5 8a02541fddbf967a27690677bf110708
BLAKE2b-256 23e15c937d797220a4aa13413f7d87de6d4542d691c9e69b582a1190bc601f4b

See more details on using hashes here.

File details

Details for the file llvd-3.0.8-py3-none-any.whl.

File metadata

  • Download URL: llvd-3.0.8-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for llvd-3.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a0a2f76f198a6838fd5ba5bd2ab3c36ee5e9e26b20b51c77fac51e61504706be
MD5 9888ec7618af29c858885d7a45810769
BLAKE2b-256 057ac9a71ba4d2f5036ced874fa318ee23b50a789be507cc9ea00ead60d957f8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page