From 12446c27d52e6da08f2eca4dc9832fb00d4b7bc5 Mon Sep 17 00:00:00 2001 From: zhangsiyuan <3837703520@qq.com> Date: Tue, 19 May 2026 16:47:02 +0800 Subject: [PATCH] =?UTF-8?q?w11-=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 --- w11/CrawlStrategy.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 w11/CrawlStrategy.java diff --git a/w11/CrawlStrategy.java b/w11/CrawlStrategy.java new file mode 100644 index 0000000..d9d9a74 --- /dev/null +++ b/w11/CrawlStrategy.java @@ -0,0 +1,12 @@ +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); + int getPriority(); +}