From 4c3cff1256d12047402d7b5bc0aa422e34cd61e0 Mon Sep 17 00:00:00 2001 From: knucklessg1 Date: Sat, 28 Oct 2023 21:18:00 -0500 Subject: [PATCH] Fixed dockerfile. --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 1214e3b..2571dc8 100644 --- a/README.md +++ b/README.md @@ -51,10 +51,31 @@ This repository is actively maintained - Contributions are welcome!
Example: +Run through CLI ```bash media-downloader --file "C:\Users\videos.txt" --directory "C:\Users\Downloads" --channel "WhiteHouse" --links "URL1,URL2,URL3" ``` +Use directly in Python +```python +from media_downloader import MediaDownloader + +url = "https://YootToob.com/video" + +video_downloader_instance = MediaDownloader() + +video_downloader_instance.set_audio(audio=False) + +video_downloader_instance.set_save_path("PATH") + +video_downloader_instance.open_file("FILE") + +video_downloader_instance.get_channel_videos("YT-Channel Name") + +video_downloader_instance.append_link(url) + +video_downloader_instance.download_all() +```