1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-13 15:23:21 +08:00
youtube-dl/test_fork.py
fauresystems a0ddf26b26 Revert .gitignore commit
Revert .gitignore commit
2019-06-23 07:47:22 +02:00

24 lines
562 B
Python

"""
test_fork.py is not added to git (only for local testing)
"""
from __future__ import unicode_literals
import youtube_dl
ydl_opts = {
'skip_download': True,
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(['http://www.pornhub.com/view_video.php?viewkey=1331683002'])
exit()
ydl_opts = {
'format': 'bestvideo[ext=mp4]+bestaudio[ext=m4a]',
'username': "tdsist",
'password': "ZtOUktu0QP",
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(['https://fr.pornhubpremium.com/view_video.php?viewkey=ph5bdbb2cd6df6a'])