Class CommentsExtractor
- java.lang.Object
-
- org.schabi.newpipe.extractor.Extractor
-
- org.schabi.newpipe.extractor.ListExtractor<CommentsInfoItem>
-
- org.schabi.newpipe.extractor.comments.CommentsExtractor
-
- Direct Known Subclasses:
BandcampCommentsExtractor
,PeertubeCommentsExtractor
,SoundcloudCommentsExtractor
,YoutubeCommentsExtractor
public abstract class CommentsExtractor extends ListExtractor<CommentsInfoItem>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.schabi.newpipe.extractor.ListExtractor
ListExtractor.InfoItemsPage<T extends InfoItem>
-
-
Field Summary
-
Fields inherited from class org.schabi.newpipe.extractor.ListExtractor
ITEM_COUNT_INFINITE, ITEM_COUNT_MORE_THAN_100, ITEM_COUNT_UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description CommentsExtractor(StreamingService service, ListLinkHandler uiHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCommentsCount()
java.lang.String
getName()
Get the nameboolean
isCommentsDisabled()
-
Methods inherited from class org.schabi.newpipe.extractor.ListExtractor
getInitialPage, getLinkHandler, getPage
-
Methods inherited from class org.schabi.newpipe.extractor.Extractor
assertPageFetched, fetchPage, forceContentCountry, forceLocalization, getBaseUrl, getDownloader, getExtractorContentCountry, getExtractorLocalization, getId, getOriginalUrl, getService, getServiceId, getTimeAgoParser, getUrl, isPageFetched, onFetchPage
-
-
-
-
Constructor Detail
-
CommentsExtractor
public CommentsExtractor(StreamingService service, ListLinkHandler uiHandler)
-
-
Method Detail
-
isCommentsDisabled
public boolean isCommentsDisabled() throws ExtractionException
- Returns:
true
if the comments are disabled otherwisefalse
(default)- Throws:
ExtractionException
- API Note:
- Warning: This method is experimental and may get removed in a future release.
-
getCommentsCount
public int getCommentsCount() throws ExtractionException
- Returns:
- the total number of comments
- Throws:
ExtractionException
-
getName
@Nonnull public java.lang.String getName() throws ParsingException
Description copied from class:Extractor
Get the name- Specified by:
getName
in classExtractor
- Returns:
- the name
- Throws:
ParsingException
- if the name cannot be extracted
-
-