import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import java.io.IOException; import java.util.List; public interface CrawlStrategy { String getBaseUrl(); List crawlPage(int page) throws IOException; T parseItem(Element element); Document fetchDocument(String url) throws IOException; }