import requests
import logging
import cfscrape
import os
from manhwaDownloader.constants import CONSTANTS as CONST

logging.basicConfig(level=logging.DEBUG)

folderPath = os.path.join(CONST.OUTPUTPATH, 'serious-taste-of-forbbiden-fruit')

logging.info(len([file for file in os.walk(folderPath)]))
walkList = [file for file in os.walk(folderPath)]

chapterDicts = dict()

for folder, _, files in walkList[1:]:
    chapterDicts.update({folder: files})

print(chapterDicts)
[(7, 'logging.basicConfig', 'logging.basicConfig', False, 'import logging\n'), (9, 'os.path.join', 'os.path.join', False, 'import os\n'), (12, 'os.walk', 'os.walk', False, 'import os\n'), (11, 'os.walk', 'os.walk', False, 'import os\n')]