mirror of
https://github.com/omg-xtao/ytdlbot.git
synced 2024-11-16 11:52:14 +00:00
19 lines
358 B
Python
19 lines
358 B
Python
#!/usr/local/bin/python3
|
|
# coding: utf-8
|
|
|
|
# ytdl-bot - dl_test.py
|
|
# 5/4/21 12:56
|
|
#
|
|
|
|
__author__ = "Benny <benny.think@gmail.com>"
|
|
|
|
import youtube_dl
|
|
|
|
ydl_opts = {
|
|
# %(title)s.%(ext)s
|
|
'outtmpl': '/Users/benny/Downloads/abc/%(title)s.%(ext)s',
|
|
|
|
}
|
|
|
|
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
|
ydl.download(['https://www.youtube.com/watch?v=BaW_jenozKc']) |