Skip to content

Instantly share code, notes, and snippets.

@daejinseok
Last active November 10, 2018 05:39
Show Gist options
  • Save daejinseok/f72279a6787f16dda961d59aa126bda4 to your computer and use it in GitHub Desktop.
Save daejinseok/f72279a6787f16dda961d59aa126bda4 to your computer and use it in GitHub Desktop.
PyCon KR 2018 영상 다운 받기
# pip install youtube-dl
# 해서 youtube-dl 설치하시고
#import subprocess
#def dn(i):
# u = r'https://www.youtube.com/watch?v=UOunv9V14cA&list=PLZPhyNeJvHRmnMr5yucZ9Eu-yVhjRRsOM&index='
# subprocess.call('youtube-dl ' + u+str(i))
#[ dn(x) for x in range(1,73)]
# 위와 같은 코드 필요없음 youtube-dl에서 index가 있으면 알아서 다 받아줌!!!
# youtube-dl 멋짐!!!
youtube-dl "https://www.youtube.com/watch?v=UOunv9V14cA&list=PLZPhyNeJvHRmnMr5yucZ9Eu-yVhjRRsOM&index=1" --playlist-start 1 --playlist-end NUMBER 42
youtube-dl "https://www.youtube.com/watch?v=UOunv9V14cA&list=PLZPhyNeJvHRmnMr5yucZ9Eu-yVhjRRsOM&index=1" --playlist-start 44
@daejinseok
Copy link
Author

daejinseok commented Nov 10, 2018

43번째 영상이 비공개라서, 오류발생
아래와 같이 해야 44번째부터 다시 받음

youtube-dl "https://www.youtube.com/watch?v=UOunv9V14cA&list=PLZPhyNeJvHRmnMr5yucZ9Eu-yVhjRRsOM&index=1" --playlist-start 44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment