Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Change TB to SimpCity
Jules-WinnfieldX97e266012af4
diff --git a/README.md b/README.mdindex 2eb522545..898da7b59 100644--- a/README.md+++ b/README.md@@ -25,7 +25,7 @@| Postimg.cc | Albums: postimg.cc/gallery/... <br> Direct Images: postimg.cc/... || Putmega | Albums: putmega.com/album/... <br> Direct Images: s#.putmega.com/... <br> Direct Images: putmega.com/image/... <br> User Profile: putmega.com/#USER# <br> All User Albums: putmega.com/#USER#/albums <br> Also works with putme.ga || SocialMediaGirls | Thread: forum.scoailmediagirls.com/threads/... <br> Continue from (will download this post and after): forum.scoailmediagirls.com/threads/...post-NUMBER |-| ThotsBay | Thread: forum.thotsbay.to/threads/... <br> Continue from (will download this post and after): forum.thotsbay.to/threads/...post-NUMBER |+| SimpCity | Thread: simpcity.st/threads/... <br> Continue from (will download this post and after): simpcity.st/threads/...post-NUMBER |Reminder to leave the link full (include the https://)@@ -92,13 +92,17 @@ optional arguments:--exclude-audio exclude audio files from downloading--exclude-other exclude other files from downloading--ignore-history ignores previous history and downloads everything- --thotsbay-username username to login to thotsbay (only required if the thread requires it)- --thotsbay-password password to login to thotsbay (only required if the thread requires it)+ --leakednudes-username username to login to leakednudes (only required if the thread requires it)+ --leakednudes-password password to login to leakednudes (only required if the thread requires it)+ --socialmediagirls-username username to login to socialmediagirls (only required if the thread requires it)+ --socialmediagirls-password password to login to socialmediagirls (only required if the thread requires it)+ --simpcity-username username to login to simpcity (only required if the thread requires it)+ --simpcity-password password to login to simpcity (only required if the thread requires it)--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```--skip can use: "anonfiles", "bayfiles", "bunkr", "coomer.party", "cyberdrop", "cyberfile", "erome", "gfycat", "gofile","jpg.church", "jpg.homes", "kemono.party", "leakednudes", "pixeldrain", "pixl.is", "postimg.cc", "putme.ga",- "putmega.com", "redgifs", "saint", "socialmediagirls", "thotsbay"+ "putmega.com", "redgifs", "saint", "socialmediagirls", "simpcity"diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex 1e3bed4cd..3348d7f9a 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "3.2.2"+__version__ = "3.2.3"diff --git a/cyberdrop_dl/base_functions/data_classes.py b/cyberdrop_dl/base_functions/data_classes.pyindex 795535aa9..9116aae6c 100644--- a/cyberdrop_dl/base_functions/data_classes.py+++ b/cyberdrop_dl/base_functions/data_classes.py@@ -140,5 +140,5 @@ class SkipData:supported_hosts: ClassVar[Tuple[str]] = ("anonfiles", "bayfiles", "bunkr", "coomer.party", "cyberdrop", "cyberfile", "erome", "gfycat", "gofile","jpg.church", "jpg.homes", "kemono.party", "leakednudes", "pixeldrain", "pixl.is", "postimg.cc", "putme.ga",- "putmega.com", "redgifs", "saint", "socialmediagirls", "thotsbay")+ "putmega.com", "redgifs", "saint", "socialmediagirls", "simpcity")sites: List[str]diff --git a/cyberdrop_dl/crawlers/Thotsbay_Spider.py b/cyberdrop_dl/crawlers/SimpCity_Spider.pysimilarity index 99%rename from cyberdrop_dl/crawlers/Thotsbay_Spider.pyrename to cyberdrop_dl/crawlers/SimpCity_Spider.pyindex 10bec351f..6fe91261b 100644--- a/cyberdrop_dl/crawlers/Thotsbay_Spider.py+++ b/cyberdrop_dl/crawlers/SimpCity_Spider.py@@ -9,7 +9,7 @@ from ..base_functions.data_classes import AuthData, CascadeItemfrom ..client.client import Session-class ThotsbayCrawler:+class SimpCityCrawler:def __init__(self, *, include_id=False, auth: AuthData = None, scraping_mapper, separate_posts=False):self.include_id = include_idself.separate_posts = separate_postsdiff --git a/cyberdrop_dl/scraper/scraper.py b/cyberdrop_dl/scraper/scraper.pyindex d3757eba4..8615ee201 100644--- a/cyberdrop_dl/scraper/scraper.py+++ b/cyberdrop_dl/scraper/scraper.py@@ -11,7 +11,7 @@ async def scrape(urls, client: Client, include_id: bool, leakednudes_auth: AuthDawait log("Starting Scrape")scraper = ScrapeMapper(client=client, include_id=include_id, leakednudes_auth=leakednudes_auth,- socialmediagirls_auth=socialmediagirls_auth, thotsbay_auth=thotsbay_auth,+ socialmediagirls_auth=socialmediagirls_auth, simpcity_auth=thotsbay_auth,separate_posts=separate_posts, skip_data=skip_data)tasks = []for link in urls:diff --git a/cyberdrop_dl/scraper/scraper_helper.py b/cyberdrop_dl/scraper/scraper_helper.pyindex 1354250e8..9534599f1 100644--- a/cyberdrop_dl/scraper/scraper_helper.py+++ b/cyberdrop_dl/scraper/scraper_helper.py@@ -21,20 +21,20 @@ from ..crawlers.Redgifs_Spider import RedGifsCrawlerfrom ..crawlers.Saint_Spider import SaintCrawlerfrom ..crawlers.ShareX_Spider import ShareXCrawlerfrom ..crawlers.SocialMediaGirls_Spider import SocialMediaGirlsCrawler-from ..crawlers.Thotsbay_Spider import ThotsbayCrawler+from ..crawlers.SimpCity_Spider import SimpCityCrawlerfrom ..base_functions.base_functions import logfrom ..base_functions.data_classes import CascadeItem, SkipDatafrom ..client.rate_limiting import AsyncRateLimiterclass ScrapeMapper():- def __init__(self, *, include_id=False, leakednudes_auth=None, socialmediagirls_auth=None, thotsbay_auth=None,+ def __init__(self, *, include_id=False, leakednudes_auth=None, socialmediagirls_auth=None, simpcity_auth=None,separate_posts=False, skip_data: SkipData, client: Client):self.include_id = include_idself.separate_posts = separate_postsself.leakednudes_auth = leakednudes_authself.socialmediagirls_auth = socialmediagirls_auth- self.thotsbay_auth = thotsbay_auth+ self.simpcity_auth = simpcity_authself.client = clientself.Cascade = CascadeItem({})@@ -56,7 +56,7 @@ class ScrapeMapper():self.saint_crawler = Noneself.sharex_crawler = Noneself.socialmediagirls_crawler = None- self.thotsbay_crawler = None+ self.simpcity_crawler = Noneself.jpgchurch_limiter = AsyncRateLimiter(19)self.bunkr_limiter = AsyncRateLimiter(15)@@ -69,7 +69,7 @@ class ScrapeMapper():"leakednudes": self.LeakedNudes, "pixeldrain.com": self.Pixeldrain, "pixl.is": self.ShareX,"postimg": self.Postimg, "putme.ga": self.ShareX, "putmega.com": self.ShareX,"redgifs.com": self.redgifs, "saint.to": self.Saint, "socialmediagirls": self.SocialMediaGirls,- "thotsbay": self.ThotsBay}+ "simpcity": self.SimpCity}async def Anonfiles(self, url: URL, title=None):anonfiles_session = Session(self.client)@@ -246,14 +246,14 @@ class ScrapeMapper():await self.Cascade.extend(await self.socialmediagirls_crawler.fetch(socialmediagirls_session, url))await socialmediagirls_session.exit_handler()- async def ThotsBay(self, url: URL, title=None):- thotsbay_session = Session(self.client)- if not self.thotsbay_crawler:- self.thotsbay_crawler = ThotsbayCrawler(include_id=self.include_id, auth=self.thotsbay_auth,+ async def SimpCity(self, url: URL, title=None):+ simpcity_session = Session(self.client)+ if not self.simpcity_crawler:+ self.simpcity_crawler = SimpCityCrawler(include_id=self.include_id, auth=self.simpcity_auth,scraping_mapper=self, separate_posts=self.separate_posts)async with self.forum_limiter:- await self.Cascade.extend(await self.thotsbay_crawler.fetch(thotsbay_session, url))- await thotsbay_session.exit_handler()+ await self.Cascade.extend(await self.simpcity_crawler.fetch(simpcity_session, url))+ await simpcity_session.exit_handler()async def map_url(self, url_to_map: URL, title=None):for key, value in self.mapping.items():