feat(service): 重命名并重构抖音爬虫服务类

将原来的 Test.java 重命名为 FtbCrawlNetDy.java,并将其重构为 Spring 组件。
实现了 FtbCrawlNetBase 接口,用于拦截抖音登录后的 Cookie。
移除了 main 方法和 Scanner 手动登录逻辑,改为通过 PlatformSelectionView 触发执行。更新了页面导航地址为抖音登录页,并保留浏览器上下文监听 Cookie 请求的功能。
删除了原有的 PlaywrightInterceptCookieExample 示例类,相关功能已整合进新结构。
This commit is contained in:
wangchunxiang
2025-10-13 17:27:19 +08:00
parent 693fedfef5
commit 7831cba3cf
4 changed files with 58 additions and 123 deletions

View File

@@ -118,6 +118,12 @@ public class PlatformSelectionView {
connectButton.setCursor(javafx.scene.Cursor.HAND);
connectButton.setStyle("-fx-background-color: " + buttonColor + "; -fx-text-fill: white; -fx-padding: 10px 20px; -fx-border-radius: 4px;");
connectButton.setOnAction(event -> {
FtbCrawlNetBase ftbCrawlNetMt = SpringContext.getBean("ftbCrawlNetDy");
ftbCrawlNetMt.executeCookieIntercept();
});
option.getChildren().addAll(imageView, titleLabel, connectButton);
return option;