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

Commit

Permalink
Fix gofile scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Jan 26, 2024
1 parent 3aaeb61 commit 66bfb97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.1.52"
__version__ = "5.1.53"
4 changes: 2 additions & 2 deletions cyberdrop_dl/scraper/crawlers/gofile_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def album(self, scrape_item: ScrapeItem) -> None:
params = {
"token": self.token,
"contentId": content_id,
"websiteToken": self.websiteToken,
"wt": self.websiteToken,
}
try:
async with self.request_limiter:
Expand Down Expand Up @@ -123,7 +123,7 @@ async def get_website_token(self, js_address: URL, session: ScraperClient) -> No
async with self.request_limiter:
text = await session.get_text(self.domain, js_address)
text = str(text)
self.websiteToken = re.search(r'fetchData\.websiteToken\s*=\s*"(.*?)"', text).group(1)
self.websiteToken = re.search(r'fetchData\.wt\s*=\s*"(.*?)"', text).group(1)
if not self.websiteToken:
raise ScrapeFailure(403, "Couldn't generate GoFile websiteToken")
self.manager.cache_manager.save("gofile_website_token", self.websiteToken)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
version = "5.1.52"
version = "5.1.53"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 66bfb97

Please sign in to comment.