Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Add attempt to _next data bunkr pull to stream. Update readme.
Jules-WinnfieldX96c531d34e68
diff --git a/README.md b/README.mdindex 23246ccfe..d888a6a24 100644--- a/README.md+++ b/README.md@@ -1,7 +1,7 @@# `cyberdrop-dl`**Bulk downloader for multiple file hosts**-The latest version of the program is 3.5.1+The latest version of the program is 3.5.2<a href="https://www.buymeacoffee.com/juleswinnft" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>@@ -100,6 +100,8 @@ optional arguments:--exclude-other exclude other files from downloading--ignore-history ignores previous history and downloads everything--output-last-forum-post Separates forum scraping into folders by post number+ --proxy HTTP/HTTPS proxy used for downloading, format [protocal]://[ip]:[port]+ --separate-posts Separates forum scraping into folders by post number--mark-downloaded Sets the scraped files as downloaded without downloading--xbunker-username username to login to xbunker (only required if the thread requires it)--xbunker-password password to login to xbunker (only required if the thread requires it)@@ -114,7 +116,6 @@ optional arguments:--skip this removes the specified hosts links from downloads--ratelimit this will add a ratelimiter to requests made in the program, the number you provide is in seconds--throttle this is a throttle between requests during the downloading phase, the number is in seconds- --proxy HTTP/HTTPS proxy used for downloading, format [protocal]://[ip]:[port]```--skip can use: "anonfiles", "bayfiles", "bunkr", "coomer.party", "cyberdrop", "cyberfile", "erome", "gfycat", "gofile","jpg.church", "kemono.party", "pixeldrain", "pixl.is", "postimg.cc", "redgifs", "saint", "socialmediagirls", "simpcity", "xbunker", "xbunkr"diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex 0c11babd0..dae42b1bd 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "3.5.1"+__version__ = "3.5.2"diff --git a/cyberdrop_dl/crawlers/Bunkr_Spider.py b/cyberdrop_dl/crawlers/Bunkr_Spider.pyindex e7c8ad76a..8ae2493db 100644--- a/cyberdrop_dl/crawlers/Bunkr_Spider.py+++ b/cyberdrop_dl/crawlers/Bunkr_Spider.py@@ -74,7 +74,13 @@ class BunkrCrawler:soup = await session.get_BS4(url)json_obj = json.loads(soup.select_one("script[id=__NEXT_DATA__]").text)if not json_obj['props']['pageProps']:- raise Exception("Couldn't get link from HTML")+ try:+ build_id = json.loads(soup.select_one("script[id=__NEXT_DATA__]").get_text())+ json_fetch = URL("https://" + url.host + "/_next/data/" + build_id['buildId'] + url.path + '.json')+ text = await session.get_text(json_fetch)+ json_obj = json.loads(text)['pageProps']+ except:+ raise Exception("Couldn't get link from HTML")link = URL(json_obj['props']['pageProps']['file']['mediafiles'] + '/' + json_obj['props']['pageProps']['file']['name'])return link