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, 0, 7, 40), 'logging.basicConfig', 'logging.basicConfig', (), '', False, 'import logging\n'), ((9, 13, 9, 79), 'os.path.join', 'os.path.join', ({(9, 26, 9, 42): 'CONST.OUTPUTPATH', (9, 44, 9, 78): '"""serious-taste-of-forbbiden-fruit"""'}, {}), "(CONST.OUTPUTPATH, 'serious-taste-of-forbbiden-fruit')", False, 'import os\n'), ((12, 29, 12, 48), 'os.walk', 'os.walk', ({(12, 37, 12, 47): 'folderPath'}, {}), '(folderPath)', False, 'import os\n'), ((11, 35, 11, 54), 'os.walk', 'os.walk', ({(11, 43, 11, 53): 'folderPath'}, {}), '(folderPath)', False, 'import os\n')]