You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
735 B
23 lines
735 B
package com.example.datacollect.w9;
|
|
|
|
import com.example.datacollect.w9.controller.CrawlerController;
|
|
import com.example.datacollect.w9.model.Article;
|
|
import com.example.datacollect.w9.view.ConsoleView;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public static void main(String[] args) {
|
|
ConsoleView view = new ConsoleView();
|
|
List<Article> articles = new ArrayList<>();
|
|
CrawlerController controller = new CrawlerController(view, articles);
|
|
|
|
view.printInfo("=== 文章爬虫系统已启动 ===");
|
|
view.printInfo("输入 help 查看命令");
|
|
|
|
while (true) {
|
|
String input = view.readLine();
|
|
controller.handle(input);
|
|
}
|
|
}
|
|
}
|
|
|