@newspapper/core
    Preparing search index...

    Function fetchFeedConditional

    • A feed's items, fetched conditionally when validators are given. The feed URL comes from POST /api/sources, so it is fetched the same guarded way as item bodies (safe-url.ts): rss-parser's own parseURL would follow any redirect to any address and read any size. Throws on a refused URL, a failed request (any non-2xx other than 304) or an unparseable feed.

      Parameters

      Returns Promise<FeedFetchResult>