ycdl/frontends/ycdl_repl.py

16 lines
413 B
Python
Raw Normal View History

2016-11-29 04:16:16 +00:00
'''
2016-12-13 03:50:41 +00:00
Run `python -i ycdl_repl.py to get an interpreter
2016-11-29 04:16:16 +00:00
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)
2016-11-29 04:16:16 +00:00
import bot
import ycdl
2020-01-07 06:01:23 +00:00
youtube = ycdl.ytapi.Youtube(bot.get_youtube_key())
2020-03-18 03:52:50 +00:00
Y = ycdl.ycdldb.YCDLDB(youtube)