Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
feat: Add FSIBlog.com Support (#1460)
Jacob207a243089d3
diff --git a/cyberdrop_dl/crawlers/__init__.py b/cyberdrop_dl/crawlers/__init__.pyindex 350c9f965..ae2419d7d 100644--- a/cyberdrop_dl/crawlers/__init__.py+++ b/cyberdrop_dl/crawlers/__init__.py@@ -35,6 +35,7 @@ from .fileditch import FileditchCrawlerfrom .files_vc import FilesVcCrawlerfrom .flugel_anime import FlugelAnimeCrawlerfrom .fourchan import FourChanCrawler+from .fsiblog import FSIBlogCrawlerfrom .generic import GenericCrawlerfrom .girlsreleased import GirlsReleasedCrawlerfrom .gofile import GoFileCrawlerdiff --git a/cyberdrop_dl/crawlers/fsiblog.py b/cyberdrop_dl/crawlers/fsiblog.pynew file mode 100644index 000000000..9f4e6153d--- /dev/null+++ b/cyberdrop_dl/crawlers/fsiblog.py@@ -0,0 +1,79 @@+from __future__ import annotations++from typing import TYPE_CHECKING, ClassVar++from cyberdrop_dl.crawlers.crawler import Crawler, SupportedPaths, auto_task_id+from cyberdrop_dl.data_structures.url_objects import AbsoluteHttpURL+from cyberdrop_dl.utils import css, open_graph+from cyberdrop_dl.utils.utilities import error_handling_wrapper++if TYPE_CHECKING:+ from cyberdrop_dl.data_structures.url_objects import ScrapeItem+++class Selector:+ IMAGES = "a.elementor-gallery-item"+ NEXT_PAGE = "a.next"+ ARTICLE = ".elementor-post__title a"+++class FSIBlogCrawler(Crawler):+ SUPPORTED_DOMAINS = "fsiblog5.com", "fsiblog5.club"+ SUPPORTED_PATHS: ClassVar[SupportedPaths] = {+ "Posts": "/<category>/<title>",+ "Search": "?s=<query>",+ }+ PRIMARY_URL: ClassVar[AbsoluteHttpURL] = AbsoluteHttpURL("https://fsiblog5.com")+ DOMAIN: ClassVar[str] = "fsiblog.com"+ FOLDER_DOMAIN: ClassVar[str] = "FSIBlog"+ OLD_DOMAINS = (+ "fsiblog.com",+ "fsiblog1.com",+ "fsiblog2.com",+ "fsiblog3.com",+ "fsiblog4.com",+ "fsiblog.club",+ "fsiblog1.club",+ "fsiblog2.club",+ "fsiblog3.club",+ "fsiblog4.club",+ )+ DEFAULT_POST_TITLE_FORMAT: ClassVar[str] = "{date:%Y-%m-%d} - {title}"+ NEXT_PAGE_SELECTOR: ClassVar[str] = Selector.NEXT_PAGE++ async def fetch(self, scrape_item: ScrapeItem) -> None:+ if query := scrape_item.url.query.get("s"):+ return await self.search(scrape_item, query)+ if len(scrape_item.url.parts) == 3:+ return await self.post(scrape_item)+ raise ValueError++ @property+ def separate_posts(self) -> bool:+ return True++ @error_handling_wrapper+ async def post(self, scrape_item: ScrapeItem) -> None:+ soup = await self.request_soup(scrape_item.url)+ meta: dict[str, str] = css.get_json_ld(soup)["@graph"][0]+ name = meta["name"].rpartition("-")[0]+ scrape_item.possible_datetime = date = self.parse_iso_date(meta["datePublished"])+ title = self.create_separate_post_title(name, None, date)+ scrape_item.setup_as_album(self.create_title(title))++ if video := open_graph.get("video", soup):+ link = self.parse_url(video)+ self.create_task(self.direct_file(scrape_item, link))++ for _, image in self.iter_tags(soup, Selector.IMAGES):+ self.create_task(self.direct_file(scrape_item, image))++ @error_handling_wrapper+ async def search(self, scrape_item: ScrapeItem, query: str) -> None:+ title = self.create_title(query)+ scrape_item.setup_as_album(title)+ async for soup in self.web_pager(scrape_item.url):+ for _, new_scrape_item in self.iter_children(scrape_item, soup, Selector.ARTICLE):+ self.create_task(self._post_task(new_scrape_item))++ _post_task = auto_task_id(post)diff --git a/tests/crawlers/test_cases/fsiblog.py b/tests/crawlers/test_cases/fsiblog.pynew file mode 100644index 000000000..1ebe3d815--- /dev/null+++ b/tests/crawlers/test_cases/fsiblog.py@@ -0,0 +1,73 @@+DOMAIN = "fsiblog.com"+TEST_CASES = [+ # Video+ (+ "https://www.fsiblog5.com/bangla-sex-video/chubby-boudi-pussy-fucking-xxx/",+ [+ {+ "url": "https://cdn.fsiblog5.com/2025/06/chubby-boudi-pussy-fucking-xxx-with-neighbor.mp4",+ "filename": "chubby-boudi-pussy-fucking-xxx-with-neighbor.mp4",+ "download_folder": r"re:2025-06-23 - Chubby boudi pussy fucking xxx with neighbor \(FSIBlog\)",+ "referer": "https://www.fsiblog5.com/bangla-sex-video/chubby-boudi-pussy-fucking-xxx/",+ "datetime": 1750674625,+ }+ ],+ ),+ # Image Gallery+ (+ "https://www.fsiblog5.com/big-ass/hot-anjali-bhabhi-exposing-her-round-ass/",+ [+ {+ "url": "https://www.fsiblog5.com/wp-content/uploads/2016/06/pune-nude-indian-horny-college-bum.jpg",+ "referer": "https://www.fsiblog5.com/big-ass/hot-anjali-bhabhi-exposing-her-round-ass",+ "datetime": 1464949849,+ },+ {+ "url": "https://www.fsiblog5.com/wp-content/uploads/2016/06/AllahabaddesibhabhiAdultsexphotos.jpg",+ "referer": "https://www.fsiblog5.com/big-ass/hot-anjali-bhabhi-exposing-her-round-ass",+ "datetime": 1464949849,+ },+ {+ "url": "https://www.fsiblog5.com/wp-content/uploads/2016/06/removing-panty-pune-college-girl-bedroom.jpg",+ "referer": "https://www.fsiblog5.com/big-ass/hot-anjali-bhabhi-exposing-her-round-ass",+ "datetime": 1464949849,+ },+ {+ "url": "https://www.fsiblog5.com/wp-content/uploads/2016/06/huge-gaand-wali-nude-indian-bhabhi.jpg",+ "referer": "https://www.fsiblog5.com/big-ass/hot-anjali-bhabhi-exposing-her-round-ass",+ "datetime": 1464949849,+ },+ {+ "url": "https://www.fsiblog5.com/wp-content/uploads/2016/06/horny-nude-big-gaand-wali-indian-bhabhi.jpg",+ "referer": "https://www.fsiblog5.com/big-ass/hot-anjali-bhabhi-exposing-her-round-ass",+ "datetime": 1464949849,+ },+ {+ "url": "https://www.fsiblog5.com/wp-content/uploads/2016/06/huge-ass-wali-nude-indian-aunty.jpg",+ "referer": "https://www.fsiblog5.com/big-ass/hot-anjali-bhabhi-exposing-her-round-ass",+ "datetime": 1464949849,+ },+ {+ "url": "https://www.fsiblog5.com/wp-content/uploads/2016/06/bedroom-full-nude-ujjain-bhabhi-bum.jpg",+ "referer": "https://www.fsiblog5.com/big-ass/hot-anjali-bhabhi-exposing-her-round-ass",+ "datetime": 1464949849,+ },+ {+ "url": "https://www.fsiblog5.com/wp-content/uploads/2016/06/chudakad-ujjain-big-bum-nude-bhabhi.jpg",+ "referer": "https://www.fsiblog5.com/big-ass/hot-anjali-bhabhi-exposing-her-round-ass",+ "datetime": 1464949849,+ },+ {+ "url": "https://www.fsiblog5.com/wp-content/uploads/2016/06/full-nude-ujjain-bum-bhabhi.jpg",+ "referer": "https://www.fsiblog5.com/big-ass/hot-anjali-bhabhi-exposing-her-round-ass",+ "datetime": 1464949849,+ },+ {+ "url": "https://www.fsiblog5.com/wp-content/uploads/2016/06/ujjain-wali-full-nude-bhabhi-bum.jpg",+ "referer": "https://www.fsiblog5.com/big-ass/hot-anjali-bhabhi-exposing-her-round-ass",+ "datetime": 1464949849,+ },+ ],+ 10,+ ),+]