From f74a73efdbd03ad8512112cfbda66f259fdf80f8 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Fri, 10 Jul 2026 17:28:47 +0200 Subject: [PATCH] docs(tiktok): trim fetch_item_list retry docstring to intent --- .../app/proprietary/platforms/tiktok/session/listing.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/surfsense_backend/app/proprietary/platforms/tiktok/session/listing.py b/surfsense_backend/app/proprietary/platforms/tiktok/session/listing.py index 5668c497a..bc8af56ff 100644 --- a/surfsense_backend/app/proprietary/platforms/tiktok/session/listing.py +++ b/surfsense_backend/app/proprietary/platforms/tiktok/session/listing.py @@ -253,10 +253,7 @@ async def fetch_item_list(page_url: str, target_count: int) -> list[dict[str, An Headful when ``CRAWL_HEADED_XVFB_ENABLED`` promises a display (the profile feed is empty to headless sessions); headless otherwise so launch never fails. - - Retries on an empty capture up to ``TIKTOK_LISTING_MAX_ATTEMPTS``: the feed is - withheld from flagged exit IPs, and the proxy rotates per request, so each retry - is a fresh IP — turning a bad first draw into a hit instead of an ``ErrorItem``. + Retries an empty draw up to ``TIKTOK_LISTING_MAX_ATTEMPTS`` for a fresh exit IP. """ headless = not config.CRAWL_HEADED_XVFB_ENABLED attempts = max(1, config.TIKTOK_LISTING_MAX_ATTEMPTS)