Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: remove password from url

NTFSvolumead7ff0383ad3
diff --git a/cyberdrop_dl/scraper/crawlers/cyberfile_crawler.py b/cyberdrop_dl/scraper/crawlers/cyberfile_crawler.py
index 804257862..8248fafaf 100644
--- a/cyberdrop_dl/scraper/crawlers/cyberfile_crawler.py
+++ b/cyberdrop_dl/scraper/crawlers/cyberfile_crawler.py
@@ -144,6 +144,7 @@ class CyberfileCrawler(Crawler):
async def file(self, scrape_item: ScrapeItem) -> None:
"""Scrapes a file"""
password = scrape_item.url.query.get("password","")
+ scrape_item.url = scrape_item.url.with_query(None)
async with self.request_limiter:
soup: BeautifulSoup = await self.client.get_BS4(self.domain, scrape_item.url, origin= scrape_item)
if 'Enter File Password' in soup.text:
diff --git a/cyberdrop_dl/scraper/crawlers/gofile_crawler.py b/cyberdrop_dl/scraper/crawlers/gofile_crawler.py
index 5ec8c0d79..b556ee56d 100644
--- a/cyberdrop_dl/scraper/crawlers/gofile_crawler.py
+++ b/cyberdrop_dl/scraper/crawlers/gofile_crawler.py
@@ -51,6 +51,7 @@ class GoFileCrawler(Crawler):
scrape_item.part_of_album = True
password = scrape_item.url.query.get("password","")
+ scrape_item.url = scrape_item.url.with_query(None)
if password:
password = sha256(password.encode()).hexdigest()