From 75c27bcc3f5b580dc918540272e3b599b6ee50ad Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Mon, 19 Jul 2021 10:48:27 +0300 Subject: [PATCH] [~] Refactor --- python/tasks/mlb_player.py | 11 +++++++++++ requirements.txt | 1 + 2 files changed, 12 insertions(+) diff --git a/python/tasks/mlb_player.py b/python/tasks/mlb_player.py index 83c809d..57ed5db 100644 --- a/python/tasks/mlb_player.py +++ b/python/tasks/mlb_player.py @@ -211,3 +211,14 @@ def kernel_4( t4=t4, t7=t7, ) + +def kernel_5(o_4): + for o in [o_4['t4'], o_4['t7']]: + subprocess.check_call( + [ + 'youtube-dl', + '-f', + '18', + o, + ] + ) diff --git a/requirements.txt b/requirements.txt index 869dabe..21fdc59 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ jupyter notebook requests pyquery +youtube-dl