from ListManager import ListManager from Manga import Manga # instantiate a chrome options object so you can set the size and headless preference chrome_options = Options() chrome_options.add_argument("--headless") chrome_options.add_argument("--window-size=1920x1080") driver = webdriver.Chrome(chrome_options=chrome_options, executable_path='./chromedriver') time.sleep(1) # Notifier to notify the user when a new chapter of a manga is downloaded notifier = Notifier() liste_manager = ListManager() for entry in liste_manager.lirescan_list: manga = Manga(entry["name"], entry["url"], entry["last_chapter"]) driver.get(manga.url) # TODO appeler le bon scrapper correspondant au site du manga actuel # check if manga dir exist, if not, creates it dir_name = './images/' + manga.dir_name + '/' if not os.path.isdir(dir_name): os.mkdir(dir_name) is_last_chapter = False previous_chapter = manga.chapter while is_last_chapter == False: