Package com.karafra.bitchutedl.parser
Class AbstractSimpleParser
- java.lang.Object
-
- com.karafra.bitchutedl.parser.AbstractSimpleParser
-
- Direct Known Subclasses:
BitchuteParser
public abstract class AbstractSimpleParser extends Object
Interface providing all necessary methods for extractor.- Author:
- Karafra.
-
-
Constructor Summary
Constructors Constructor Description AbstractSimpleParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract DownloadPagePropsextract(String linkToVideo)Extracts raw link from given linkorg.seimicrawler.xpath.JXDocumentget(String urlString)Connects to URL, used to avoid duplicate calls.org.jsoup.nodes.ElementgetElementByXpath(String xpath)Gets element by xpath and and throwsexceptionif xpath does not exist in DOM.
-
-
-
Method Detail
-
extract
public abstract DownloadPageProps extract(String linkToVideo) throws IOException
Extracts raw link from given link- Parameters:
linkToVideo- link from which raw is to be extracted- Returns:
- raw link.
- Throws:
IOException
-
get
public org.seimicrawler.xpath.JXDocument get(String urlString)
Connects to URL, used to avoid duplicate calls.- Parameters:
urlString- url to connect to- Returns:
- Established connection.
-
-