Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Implement single post scraping for kemono/coomer
Jules-WinnfieldX44618762605a
diff --git a/README.md b/README.mdindex 6d5527fe1..cce2fd4ed 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.4.4+The latest version of the program is 3.4.5<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>@@ -13,7 +13,7 @@ The latest version of the program is 3.4.4| Anonfiles | Download page: Anonfiles.com/... || Bayfiles | Download page: Bayfiles.com/... || Bunkr | Albums: bunkr.is/a/... <br> Direct Videos: stream.bunkr.is/v/... <br> Direct Videos: cdn.bunkr.is/... <br> Direct Images: i.bunkr.is/... <br> Also works with Bunkr.to |-| Coomer.party | Profiles: coomer.party/... <br> Thumbnail Links: coomer.party/thumbnail/... <br> Data Links: coomer.party/data/... |+| Coomer.party | Profiles: coomer.party/... <br> Thumbnail Links: coomer.party/thumbnail/... <br> Data Links: coomer.party/data/... <br> coomer.party/.../post/... || Cyberdrop | Albums: cyberdrop.me/a/... <br> Direct Videos: fs-0#.cyberdrop.me/... <br> Direct Videos: f.cyberdrop.me/... <br> Direct Images: img-0#.cyberdrop.me/... <br> Direct Images: f.cyberdrop.me/... <br> Also works with .cc, .to, and .nl || Cyberfile | folders: cyberfile.is/folder/... <br> shared: cyberfile.is/shared/... <br> Direct: cyberfile.is/... || Erome | Albums: erome.com/a/... |@@ -21,7 +21,7 @@ The latest version of the program is 3.4.4| IMG.Kiwi | Albums: img.kiwi/album/... <br> Direct Images: img.kiwi/image/... <br> User Profile: img.kiwi/#USER# <br> All User Albums: img.kiwi/#USER#/albums || jpg.church | Albums: jpg.church/album/... <br> Direct Images: jpg.church/image/... <br> User Profile: jpg.church/#USER# <br> All User Albums: jpg.church/#USER#/albums || jpg.homes | Albums: jpg.homes/album/... <br> Direct Images: jpg.homes/image/... <br> User Profile: jpg.homes/#USER# <br> All User Albums: jpg.homes/#USER#/albums |-| Kemono.party | Profiles: kemono.party/... <br> Thumbnail Links: kemono.party/thumbnail/... <br> Data Links: kemono.party/data/... |+| Kemono.party | Profiles: kemono.party/... <br> Thumbnail Links: kemono.party/thumbnail/... <br> Data Links: kemono.party/data/... <br> Posts: kemono.party/.../post/... || LeakedNudes | Thread: forum.leakednudes.co/threads/... <br> Continue from (will download this post and after): forum.leakednudes.co/threads/...post-NUMBER || PixelDrain | Albums: Pixeldrain.com/l/... <br> Single Files: Pixeldrain.com/u/... || Pixl | Albums: pixl.is/album/... <br> Direct Images: pixl.is/image/... <br> User Profile: pixl.is/#USER# <br> All User Albums: pixl.is/#USER#/albums |diff --git a/changelog.txt b/changelog.txtnew file mode 100644index 000000000..d6fd1d0fb--- /dev/null+++ b/changelog.txt@@ -0,0 +1,5 @@+3.4.4+- Fixed config being recreated constantly due to typo.++3.4.5+- Added support to Coomer/Kemono for single post scraping.\ No newline at end of filediff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex 922fee773..3bc35c30a 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "3.4.4"+__version__ = "3.4.5"diff --git a/cyberdrop_dl/crawlers/Coomer_Spider.py b/cyberdrop_dl/crawlers/Coomer_Spider.pyindex ca9e6377e..e6c2c346a 100644--- a/cyberdrop_dl/crawlers/Coomer_Spider.py+++ b/cyberdrop_dl/crawlers/Coomer_Spider.py@@ -20,6 +20,10 @@ class CoomerCrawler:await domain_obj.add_to_album("Loose Coomer.Party Files", link, link)elif "data" in url.parts:await domain_obj.add_to_album("Loose Coomer.Party Files", url, url)+ elif "post" in url.parts:+ results = await self.parse_post(session, url, None)+ for result in results:+ await domain_obj.add_to_album(result[0], result[1], result[2])else:results.extend(await self.parse_profile(session, url))@@ -56,12 +60,15 @@ class CoomerCrawler:logger.debug(e)return []- async def parse_post(self, session: Session, url: URL, title: str):+ async def parse_post(self, session: Session, url: URL, title=None):try:soup = await session.get_BS4(url)results = []- title = title + '/' + await make_title_safe(soup.select_one("h1[class=post__title]").text.replace('\n', '').replace("..", ""))+ if title:+ title = title + '/' + await make_title_safe(soup.select_one("h1[class=post__title]").text.replace('\n', '').replace("..", ""))+ else:+ title = await make_title_safe(soup.select_one("h1[class=post__title]").text.replace('\n', '').replace("..", ""))images = soup.select('a[class="fileThumb"]')for image in images:diff --git a/cyberdrop_dl/crawlers/Kemono_Spider.py b/cyberdrop_dl/crawlers/Kemono_Spider.pyindex 105649697..3969bd47c 100644--- a/cyberdrop_dl/crawlers/Kemono_Spider.py+++ b/cyberdrop_dl/crawlers/Kemono_Spider.py@@ -20,6 +20,10 @@ class KemonoCrawler:await domain_obj.add_to_album("Loose Kemono.Party Files", link, link)elif "data" in url.parts:await domain_obj.add_to_album("Loose Kemono.Party Files", url, url)+ elif "post" in url.parts:+ results = await self.parse_post(session, url, None)+ for result in results:+ await domain_obj.add_to_album(result[0], result[1], result[2])else:results.extend(await self.parse_profile(session, url))@@ -56,12 +60,15 @@ class KemonoCrawler:logger.debug(e)return []- async def parse_post(self, session: Session, url: URL, title: str):+ async def parse_post(self, session: Session, url: URL, title=None):try:soup = await session.get_BS4(url)results = []- title = title + '/' + await make_title_safe(soup.select_one("h1[class=post__title]").text.replace('\n', '').replace("..", ""))+ if title:+ title = title + '/' + await make_title_safe(soup.select_one("h1[class=post__title]").text.replace('\n', '').replace("..", ""))+ else:+ title = await make_title_safe(soup.select_one("h1[class=post__title]").text.replace('\n', '').replace("..", ""))images = soup.select('a[class="fileThumb"]')for image in images: