From 0fb2d81e5f34aa592c1588e1ef6d512e417b1ede Mon Sep 17 00:00:00 2001 From: zhangsiyuan <3837703520@qq.com> Date: Thu, 7 May 2026 17:39:26 +0800 Subject: [PATCH] =?UTF-8?q?w10-=E5=BC=A0=E6=80=9D=E6=B8=8A-202401070104?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- w10/CrawlStrategy.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 w10/CrawlStrategy.java diff --git a/w10/CrawlStrategy.java b/w10/CrawlStrategy.java new file mode 100644 index 0000000..2586429 --- /dev/null +++ b/w10/CrawlStrategy.java @@ -0,0 +1,11 @@ +package com.example.datacollect.strategy; + +import com.example.datacollect.model.Article; +import org.jsoup.nodes.Document; +import java.util.List; + +public interface CrawlStrategy { + List
parse(String url, Document doc); + boolean supports(String url); + int getPriority(); +}