Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
fix cyberfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Oct 30, 2023
1 parent eb29c7b commit 49d6571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyberdrop_dl/crawlers/CyberFile_Spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("'", ""))
Expand Down

0 comments on commit 49d6571

Please sign in to comment.