Class CommentsExtractor

Direct Known Subclasses:
BandcampCommentsExtractor, PeertubeCommentsExtractor, SoundcloudCommentsExtractor, YoutubeCommentsExtractor

public abstract class CommentsExtractor extends ListExtractor<CommentsInfoItem>
  • Constructor Details

  • Method Details

    • isCommentsDisabled

      public boolean isCommentsDisabled() throws ExtractionException
      Returns:
      true if the comments are disabled otherwise false (default)
      Throws:
      ExtractionException
      API Note:
      Warning: This method is experimental and may get removed in a future release.
    • isLiveChat

      public boolean isLiveChat() throws ExtractionException
      Returns:
      true if the comments source is a live chat otherwise false (default)
      Throws:
      ExtractionException
      API Note:
      Warning: This method is experimental and may get removed in a future release.
    • setLiveChatContinuation

      public void setLiveChatContinuation(String continuation)
      API Note:
      Warning: This method is experimental and may get removed in a future release. Configures this extractor to fetch live chat messages using the given continuation.
    • getCommentsCount

      public int getCommentsCount() throws ExtractionException
      Returns:
      the total number of comments
      Throws:
      ExtractionException
    • getName

      @Nonnull public String getName() throws ParsingException
      Description copied from class: Extractor
      Get the name
      Specified by:
      getName in class Extractor
      Returns:
      the name
      Throws:
      ParsingException - if the name cannot be extracted