Skip to content

Commit f99a3ab

Browse files
authored
Update youtuber.py
1 parent 8477c18 commit f99a3ab

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

youtuber.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,17 @@
2424
import youtube_dl
2525
import os
2626

27-
start = 101;
28-
end = 154;
27+
input=' '+input()
28+
start = 1
29+
end = input('Number of videos:')
2930

3031
# For fetching the title of the video in playlist
31-
cmd_code1='py -m youtube_dl -e --playlist-start ' +str(start)+' --playlist-end '+str(end)+' https://www.youtube.com/playlist?list=PLj6h78yzYM2PpmMAnvpvsnR4c27wJePh3'
32+
cmd_code1='py -m youtube_dl -e --playlist-start ' +str(start)+' --playlist-end '+str(end)+input
3233
title = os.popen(cmd_code1).read().splitlines()
3334
#print(title[0])
3435

3536
# For fetching the id of that particular video in playlist
36-
cmd_code2='py -m youtube_dl --get-id --playlist-start ' +str(start)+' --playlist-end '+str(end)+' https://www.youtube.com/playlist?list=PLj6h78yzYM2PpmMAnvpvsnR4c27wJePh3'
37+
cmd_code2='py -m youtube_dl --get-id --playlist-start ' +str(start)+' --playlist-end '+str(end)+input
3738
video_id = os.popen(cmd_code2).read().splitlines()
3839

3940
print('| Topic | Video | Presentation |')

0 commit comments

Comments
 (0)