Youtube-dl. How to get list of supported sites in python script?
<p>I have a simple python script which takes a link in clipboard and transfer to youtube-dl:</p>

<pre><code>import youtube_dl
import tkinter as tk
import subprocess
import os

root = tk.Tk()
# keep the window from showing
root.withdraw()
# read the clipboard
clipboard_link = root.clipboard_get()

ydl_opts = { "format": "[height&lt;=480]"}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
    get_info = ydl.extract_info(clipboard_link, download=False)

#open url in external player
video_url = get_info["url"]
path_to_player = r"C:\Program Files (x86)\K-Lite Codec Pack\MPC-HC64\mpc-hc64.exe"
subprocess.call([path_to_player, video_url])
</code></pre>

<p>How can I check a root.clipboard_get() with <a href="http://rg3.github.io/youtube-dl/supportedsites.html" rel="nofollow">list of supported site</a>
 before assign to clipboard_link?</p>