-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathutube-expire0.py
More file actions
47 lines (31 loc) · 1.19 KB
/
utube-expire0.py
File metadata and controls
47 lines (31 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python3
#requirement dnf install youtube-dl
#install ffmpeg via the rpmfusion repo
#https://rpmfusion.org/Configuration/
#### run ######
#### add a url to a file , python3 <script>, select 1 and enter the file path
import subprocess
def download():
get =input("Enter url file list location path: ")
f = open(get)
line = f.readlines()
for i in line:
run = "youtube-dl -f 140 " + i
print ("Processing. Call me leech ")
subprocess.call(run, shell=True)
def search():
get = input("What's your pleasure? Enter a search term: ")
run = "youtube-dl -k \"ytsearch:" + get + "\""
print ("Processing. Call me leech ")
subprocess.call(run, shell=True)
# print(mas)
print("Enter 1 if you have a URL file list. (one url per line) : ")
print("Enter 2 if you prefer to do a search and download all video and audio content: ")
print("Developed by OpenKB.org. Any questions please contact the developer Mas")
selection = input("What do you desire ?: ")
if selection =="1" :
download()
elif selection == "2":
search()
else:
print("Your not good at following instructions. Please rerun the application and make a valid seletion")