@newspapper/core
    Preparing search index...

    Function fetchBody

    • The article body behind a feed item's link, as plain text, or ''.

      Never throws, so one bad item can't fail a whole search. The link is chosen by whoever controls the feed, so it goes through safeFetch: public http(s) addresses only, every redirect hop re-checked, the body capped. A refused URL is just another ''.

      Parameters

      • url: string
      • userAgent: string
      • timeoutMs: number
      • deps: SafeFetchDeps = {}

      Returns Promise<string>