I\'m using the following code to extract videos info (without downloading):
import youtube_dl with youtube_dl.YoutubeDL({}) as ydl: result = ydl.extract_