From 09adb5e7f5a1c9c0edba5e439b20eb137d631ab1 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Wed, 4 Jan 2017 11:50:11 +0100 Subject: [PATCH] =?utf8?q?Script=20pour=20r=C3=A9cup=C3=A9rer=20tous=20les?= =?utf8?q?=20.torrents=20des=20Vid=C3=A9os=20du=20C3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- get_ccc_torrents.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 get_ccc_torrents.sh diff --git a/get_ccc_torrents.sh b/get_ccc_torrents.sh new file mode 100755 index 0000000..07017ee --- /dev/null +++ b/get_ccc_torrents.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# Pour récupérer tous les torrents files des Vidéos CCC + +CCC="33c3" +YEAR="2016" + +DIR=~/Vidéos/${CCC}_torrents/ + +mkdir -p ${DIR} +cd ${DIR} + +# Je prends que les h264sd et hd +BASE_URL="http://cdn.media.ccc.de/congress/${YEAR}" +URL1="${BASE_URL}/h264-sd" +URL2="${BASE_URL}/h264-hd" + +for url in ${URL1} ${URL2} +do + for file in $(wget -qO- ${url} | sed 's/^.*href="\([^"]*\)".*/\1/' | grep "^${CCC}-") + do + wget "${url}/${file}.torrent" + done +done -- 2.39.2