ycdl/frontends/ycdl_repl.py
Ethan Dalool 74d4a55d32
Rename import bot -> youtube_credentials.
In the days of making reddit bots I always put creds into bot.py.
But for this project it wouldn't make any sense to newcomers.
2021-04-25 18:02:26 -07:00

13 lines
326 B
Python

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