public class YoutubeFeedExtractor extends FeedExtractor
ListExtractor.InfoItemsPage<T extends InfoItem>
ITEM_COUNT_INFINITE, ITEM_COUNT_MORE_THAN_100, ITEM_COUNT_UNKNOWN
Constructor and Description |
---|
YoutubeFeedExtractor(StreamingService service,
ListLinkHandler linkHandler) |
Modifier and Type | Method and Description |
---|---|
String |
getId() |
ListExtractor.InfoItemsPage<StreamInfoItem> |
getInitialPage()
A
InfoItemsPage corresponding to the initial page
where the items are from the initial request and the nextPage relative to it. |
String |
getName()
Get the name
|
ListExtractor.InfoItemsPage<StreamInfoItem> |
getPage(Page page)
Get a list of items corresponding to the specific requested page.
|
String |
getUrl() |
void |
onFetchPage(Downloader downloader)
Fetch the current page.
|
getLinkHandler
assertPageFetched, fetchPage, forceContentCountry, forceLocalization, getBaseUrl, getDownloader, getExtractorContentCountry, getExtractorLocalization, getOriginalUrl, getService, getServiceId, getTimeAgoParser, isPageFetched
public YoutubeFeedExtractor(StreamingService service, ListLinkHandler linkHandler)
public void onFetchPage(@Nonnull Downloader downloader) throws IOException, ExtractionException
Extractor
onFetchPage
in class Extractor
downloader
- the downloader to useIOException
- if the page can not be loadedExtractionException
- if the pages content is not understood@Nonnull public ListExtractor.InfoItemsPage<StreamInfoItem> getInitialPage()
ListExtractor
InfoItemsPage
corresponding to the initial page
where the items are from the initial request and the nextPage relative to it.getInitialPage
in class ListExtractor<StreamInfoItem>
ListExtractor.InfoItemsPage
corresponding to the initial pagepublic ListExtractor.InfoItemsPage<StreamInfoItem> getPage(Page page)
ListExtractor
getPage
in class ListExtractor<StreamInfoItem>
page
- any page got from the exclusive implementation of the list extractorListExtractor.InfoItemsPage
corresponding to the requested pageListExtractor.InfoItemsPage.getNextPage()