docs(tiktok): trim fetch_item_list retry docstring to intent

This commit is contained in:
CREDO23 2026-07-10 17:28:47 +02:00
parent 01bc3f8de3
commit f74a73efdb

View file

@ -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 Headful when ``CRAWL_HEADED_XVFB_ENABLED`` promises a display (the profile feed
is empty to headless sessions); headless otherwise so launch never fails. is empty to headless sessions); headless otherwise so launch never fails.
Retries an empty draw up to ``TIKTOK_LISTING_MAX_ATTEMPTS`` for a fresh exit IP.
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``.
""" """
headless = not config.CRAWL_HEADED_XVFB_ENABLED headless = not config.CRAWL_HEADED_XVFB_ENABLED
attempts = max(1, config.TIKTOK_LISTING_MAX_ATTEMPTS) attempts = max(1, config.TIKTOK_LISTING_MAX_ATTEMPTS)