From 68b0c7de7394422e6078ba4814a0389a1e23ae46 Mon Sep 17 00:00:00 2001 From: rakesh Date: Mon, 25 Nov 2019 23:27:54 +0530 Subject: [PATCH] move mp4 files from source to destination --- Automation/move.py | 8 ++++++++ webscraper/youtubeDownloader.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Automation/move.py diff --git a/Automation/move.py b/Automation/move.py new file mode 100644 index 0000000..eef8852 --- /dev/null +++ b/Automation/move.py @@ -0,0 +1,8 @@ +import glob +import os +import shutil +dest_dir = "C:/test" +for file in glob.glob('e:/python/*.mp4'): + print(file) + shutil.copy(file, dest_dir) + os.unlink(file) diff --git a/webscraper/youtubeDownloader.py b/webscraper/youtubeDownloader.py index ecb2c75..81f1e96 100644 --- a/webscraper/youtubeDownloader.py +++ b/webscraper/youtubeDownloader.py @@ -5,4 +5,4 @@ ydl_opts = {} with youtube_dl.YoutubeDL(ydl_opts) as ydl: ydl.download( - ['https://www.facebook.com/111437890200079/videos/2399259550150228/']) + ['https://www.youtube.com/watch?v=3qti7Vof_7Q&list=PLbGui_ZYuhiiaQjuOfvgx_-gzVBlCxrk0&index=1'])