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)
[((116, 156), 'logging.basicConfig', 'logging.basicConfig', ([], {'level': 'logging.DEBUG'}), '(level=logging.DEBUG)\n', (135, 156), False, 'import logging\n'), ((171, 237), 'os.path.join', 'os.path.join', (['CONST.OUTPUTPATH', '"""serious-taste-of-forbbiden-fruit"""'], {}), "(CONST.OUTPUTPATH, 'serious-taste-of-forbbiden-fruit')\n", (183, 237), False, 'import os\n'), ((326, 345), 'os.walk', 'os.walk', (['folderPath'], {}), '(folderPath)\n', (333, 345), False, 'import os\n'), ((274, 293), 'os.walk', 'os.walk', (['folderPath'], {}), '(folderPath)\n', (281, 293), False, 'import os\n')]