ycdl/frontends/ycdl_repl.py

14 lines
326 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').setLevel(logging.DEBUG)
2016-11-29 04:16:16 +00:00
import ycdl
import youtube_credentials
2016-11-29 04:16:16 +00:00
youtube = ycdl.ytapi.Youtube(youtube_credentials.get_youtube_key())
2020-03-18 03:52:50 +00:00
Y = ycdl.ycdldb.YCDLDB(youtube)