From 49d6571d22dc7b724f1dcb30fdff04d4ff495965 Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Mon, 30 Oct 2023 08:37:43 -0600 Subject: [PATCH] fix cyberfile --- cyberdrop_dl/crawlers/CyberFile_Spider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyberdrop_dl/crawlers/CyberFile_Spider.py b/cyberdrop_dl/crawlers/CyberFile_Spider.py index 8e6311849..049f99615 100644 --- a/cyberdrop_dl/crawlers/CyberFile_Spider.py +++ b/cyberdrop_dl/crawlers/CyberFile_Spider.py @@ -67,7 +67,7 @@ async def get_folder_id(self, session: ScrapeSession, url: URL) -> int: try: async with self.limiter: soup = await session.get_BS4(url) - script_func = soup.select_one('div[class="page-container horizontal-menu with-sidebar fit-logo-with-sidebar logged-out clear-adblock"] script').text + script_func = soup.select('div[class*="page-container"] script')[-1].text script_func = script_func.split('loadImages(')[-1] script_func = script_func.split(';')[0] nodeId = int(script_func.split(',')[1].replace("'", ""))