mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-16 23:01:06 +02:00
docs(tiktok): trim fetch_item_list retry docstring to intent
This commit is contained in:
parent
01bc3f8de3
commit
f74a73efdb
1 changed files with 1 additions and 4 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue