diff --git a/Scripts/Web_Scrappers/SocialMediadownload/Socialmedai.py b/Scripts/Web_Scrappers/SocialMediadownload/Socialmedai.py new file mode 100644 index 000000000..bd0dc8d40 --- /dev/null +++ b/Scripts/Web_Scrappers/SocialMediadownload/Socialmedai.py @@ -0,0 +1,23 @@ +#pip install you-get +#get url of youtube video and with video player + +#for URL +import re + +#for sub process +import subprocess + +#put urls from youtube and other social media platform 50+ +url="https://www.youtube.com/watch?v=rpZxFbtr7j0" + +#put cmd on in subprocess +proc = subprocess.Popen([f"you-get -u --itag=22 {url}"], stdout=subprocess.PIPE, shell=True) + +#communicate to the URL +(out, err) = proc.communicate() + +#Decode the url +out=out.decode("utf-8") + +#display the downloading video url +print(out); \ No newline at end of file diff --git a/Scripts/Web_Scrappers/SocialMediadownload/output/output.png b/Scripts/Web_Scrappers/SocialMediadownload/output/output.png new file mode 100644 index 000000000..7d4d18fd6 Binary files /dev/null and b/Scripts/Web_Scrappers/SocialMediadownload/output/output.png differ diff --git a/Scripts/Web_Scrappers/SocialMediadownload/requirements.txt b/Scripts/Web_Scrappers/SocialMediadownload/requirements.txt new file mode 100644 index 000000000..828fa6c38 --- /dev/null +++ b/Scripts/Web_Scrappers/SocialMediadownload/requirements.txt @@ -0,0 +1 @@ +pip install you-get \ No newline at end of file