src/crawler.py
def dl(contenturl, opt):
    """Takes url as content location and opt as youtube_dl options"""
    with youtube_dl.YoutubeDL(opt) as ydl:
        try:
            print('downloading from: {}'.format(contenturl))
            ydl.download([contenturl])
        except youtube_dl.DownloadError:
            # youtube_dl 404 error
            print('\nDownload Error\n')
        except KeyboardInterrupt:
            print('\nCancelling')
            exit()
Takes url as content location and opt as youtube_dl options
Takes url as content location and opt as youtube_dl options
Takes url as content location and opt as youtube_dl options
def dl(contenturl, opt):
    with youtube_dl.YoutubeDL(opt) as ydl:
        try:
            print('downloading from: {}'.format(contenturl))
            ydl.download([contenturl])
        except youtube_dl.DownloadError:
            print('\nDownload Error\n')
        except KeyboardInterrupt:
            print('\nCancelling')
            exit()
def dl ( contenturl , opt ) : with youtube_dl . YoutubeDL ( opt ) as ydl : try : print ( 'downloading from: {}' . format ( contenturl ) ) ydl . download ( [ contenturl ] ) except youtube_dl . DownloadError : print ( '\nDownload Error\n' ) except KeyboardInterrupt : print ( '\nCancelling' ) exit ( )
Takes url as content location and opt as youtube_dl options
Takes url as content location and opt as youtube_dl options
"""Takes url as content location and opt as youtube_dl options""" # youtube_dl 404 error
contenturl
opt