Magpie HTML - v0.2.3
    Preparing search index...

    Function extractFeedDiscovery

    • Extract feed discovery metadata from HTML.

      Parameters

      • input: DocumentInput

        Parsed HTML document or raw HTML string

      • OptionaldocumentUrl: string | URL

        Optional document URL for generating absolute feed suggestions

      Returns FeedDiscoveryMetadata

      Feed discovery metadata

      Finds all feeds declared in tags and generates suggestions for common feed URL patterns.

      // With parsed document (recommended for multiple extractions)
      const doc = parseHTML(htmlString);
      const feeds = extractFeedDiscovery(doc, 'https://example.com');

      // Or directly with HTML string
      const feeds = extractFeedDiscovery(htmlString, 'https://example.com');