ycdl/frontends/ycdl_repl.py

15 lines
413 B
Python

'''
Run `python -i ycdl_repl.py to get an interpreter
session with these variables preloaded.
'''
import logging
logging.basicConfig()
logging.getLogger('ycdl.ycdldb').setLevel(logging.DEBUG)
logging.getLogger('ycdl.ytapi').setLevel(logging.DEBUG)
logging.getLogger('ycdl.ytrss').setLevel(logging.DEBUG)
import bot
import ycdl
youtube = ycdl.ytapi.Youtube(bot.get_youtube_key())
Y = ycdl.ycdldb.YCDLDB(youtube)