| Re: [CBLX] yt-dlp et DailyMotion |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/carrefourblinux Archives
]
- To: carrefourblinux@xxxxxxxxxxxxxxxxxxx, Osvaldo La Rosa aka Aldo <lar0sa.osvaldo@xxxxxxxxx>
- Subject: Re: [CBLX] yt-dlp et DailyMotion
- From: Pierre Estrem <pierre.estrem@xxxxxxxxxxxxxxx>
- Date: Thu, 16 Jul 2026 23:32:14 +0200
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infinityyyy.com; s=default; h=In-Reply-To:References:To:Subject:From: MIME-Version:Date:Message-ID:Content-Type:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=z7tI9D7VHNqwnB6IHXjkXL9sP+ZWzIr5e7DYdHbL+wE=; b=bEnyHCAFCl3VtJskDLu6cvFssa mL3NfNNP4n8+Fe0tETnFiOhPnyvnYYRiNyXwwP97fP2KE5nQt9oUAKwkh8x3IiApnLKTBL+NuzTnD pPCk1NlYx0UXKqon5yBjRNknsJr9w4tj1R2tjUXWpSxtYsTJzk+FNZuBmqN+CmENHM3xYsGok+k2Y MfU+Nl5K6CtpBZMmCthEigebvgfu5GEwBS2o2K9cTQfefeOIWZxpSthsA8/pvLhs+R/ogs7vudOSV pbB3Z9gaiodd6wABRLBZB/DmXt9ZyATWDOnOUqCAFNeyjb1Jac+US0aJ9ddG3jnok2DalyZWArt7C zVTqTgwg==;
Bonsoir Aldo et la liste,
J'ai souvent rencontré également ce problème et je le contourne en usant
de Python.
J'ai joint un script qu'il faut fairre tourner dans un environnement
Python (souvent situé dans le dossier .venv).
Peut-êrtre que cela t'aidera...
Pierre Estrem
Le 16/07/2026 à 17:22, Osvaldo La Rosa aka Aldo a écrit :
Bonjour.
Malgré un ventilo pour éviter la surchauffe de mon ordi, je n'arrive pas à télécharger - en ligne de commande - un clip de DailyMotion,
pourtant yt-dlp dit être compatible avec un millier de plateformes!
Voici ce que je fais:
###
# Check:
$ which yt-dlp
/home/moi/bin/yt-dlp
# Exécution:
$ yt-dlp -x --audio-format mp3http://www.dailymotion.com/video/x9jtvp2
# Réponse:
[dailymotion] Extracting URL:http://www.dailymotion.com/video/x9jtvp2
[dailymotion] Downloading Access Token
[dailymotion] x9jtvp2: Downloading media JSON metadata
[dailymotion] x9jtvp2: Downloading metadata JSON
[dailymotion] x9jtvp2: Downloading m3u8 information with randomized headers
[dailymotion] x9jtvp2: Retrying m3u8 download with Chrome impersonation
[dailymotion] x9jtvp2: Retrying m3u8 download with Firefox impersonation
[dailymotion] x9jtvp2: The extractor is attempting impersonation, but none of these impersonate targets are available:
firefox. Seehttps://github.com/yt-dlp/yt-dlp#impersonation for information on installing the required dependencies
# Sortie !
$
###
NB:
- je fais des maj régulières avec yt-dlp -U permises en tant que user.
- autre piste / appli la bienvenue!
Bàv, Aldo.
import sys
from pytubefix import YouTube
from pytubefix.cli import on_progress
url = sys.argv[1]
yt = YouTube(url, on_progress_callback=on_progress)
print(f"Téléchargement de : {yt.title}")
# Commentez si vous ne souhaitez que le flux audio
ys = yt.streams.get_highest_resolution()
# Commentez si vous souhaitez vidéo et audio
#ys = yt.streams.get_audio_only()
ys.download()