def read_cookie(cookiepath):
    global BILIGRAB_HEADER
    try:
        cookies_file = open(cookiepath, 'r')
        cookies = cookies_file.readlines()
        cookies_file.close()
        # print(cookies)
        return cookies
    except Exception:
        logging.warning('Cannot read cookie, may affect some videos...')
        return ['']

#----------------------------------------------------------------------
CheckPrereq checks related to a new disk template.
dataset/ETHPy150Open cnbeining/Biligrab/biligrab.py/read_cookie--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/instance_set_params.py/LUInstanceSetParams._PreCheckDiskTemplate