package com.example.datacollect.strategy; import com.example.datacollect.exception.ParseException; import com.example.datacollect.model.Article; import org.jsoup.nodes.Document; import java.util.List; public interface CrawlStrategy { List
parse(String url, Document doc) throws ParseException; boolean supports(String url); default int getPriority() { return 0; } }