Skip to main content

LinkedIn-Downloader

A small tool to download videos from linkeding.

Requirements

  • Python 3.7 or higher.
  • pip 22.1.x or higher

Install

  1. Install tool

    pip install linkedin-dl
    

Usage

You can use this tool very easily, with the argument -h you can obtain information about its use:

linkedin-dl -h
usage: linkedin-dl [-h] [-m NUMBER] [-w NUMBER] [-l SECONDS] [-q QUALITY] URL FILE

Download videos from LinkedIn

positional arguments:
  URL                   The URL to the video streaming
  FILE                  The file to save the video.

optional arguments:
  -h, --help            show this help message and exit
  -m NUMBER, --max_attempts NUMBER
                        The maximum number of attempts in case of connection error.
  -w NUMBER, --wait SECONDS
                        A delay time between several download intents.
  -l SECONDS, --limit SECONDS
                        The maximum time to download. 0 for all the video. By default, 0.
  -q QUALITY, --quality QUALITY
                        The maximum time to download. 0 for all the video. By default, 3200000.

Where URL is the URL with the LinkedIn page that contain the video and FILE is the path to the file to save the video locally in mp4 format, any other format is supported. The rest of the arguments are optionals:

  • -m NUMBER is the number of attempts to reconnect when the connection fails;
  • -w SECONDS is the time in seconds to wait between each attempt in case of connection fail;
  • -l SECONDS is the limit of time in seconds to download, by default, all the video is downloaded.
  • -q QUALITY is the video quality to download. By default, it is the maximum. The available values are:
    • 128000
    • 400000
    • 800000
    • 1600000
    • 3200000

Download a video

linkedin-dl "URL" "FILE" -l SECONDS -q QUALITY

Some examples:

# Download all the video
linkedin-dl "https://www.linkedin.com/video/live/urn:li:ugcPost:6940332883056205824/" "Te mereces destacar.mp4"

# Download only the first 60 seconds
linkedin-dl "https://www.linkedin.com/video/live/urn:li:ugcPost:6940332883056205824/" "Te mereces destacar.mp4" -l 60

Metadata

Release files for linkedin-dl 0.0.8

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

Source distribution (sdist)

Source distribution for linkedin-dl 0.0.8
File Size Uploaded Provenance Actions
linkedin-dl-0.0.8.tar.gz 5.6 kB Without provenance Details for linkedin-dl-0.0.8.tar.gz

Release files / linkedin-dl-0.0.8.tar.gz

Download URL linkedin-dl-0.0.8.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
04e64fec11ed04f0809a8398f64f014141acab3996c5fe4f617f03a398a9d52f
BLAKE2b-256 checksum
How to use checksums
3ecdc3f1a821f91e26338b256933657e440987339b43036c1160758556b171cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.3

Security for linkedin-dl 0.0.8

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.

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