嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
是一个基于springboot layui开发的前后端不分离的爬虫平台,以图形化方式定义爬虫流程,无需代码即可实现一个爬虫
public interface ShapeExecutor {
String LOOP_VARIABLE_NAME = "loopVariableName";
String LOOP_COUNT = "loopCount";
String THREAD_COUNT = "threadCount";
default Shape shape(){
return null;
}
/**
* 节点形状
* @return 节点形状名称
*/
String supportShape();
/**
* 执行器具体的功能实现
* @param node 当前要执行的爬虫节点
* @param context 爬虫上下文
* @param variables 节点流程的全部变量的集合
*/
void execute(SpiderNode node, SpiderContext context, Map<String, Object> variables);
default boolean allowExecuteNext(SpiderNode node, SpiderContext context, Map<String, Object> variables){
return true;
}
default boolean isThread(){
return true;
}
}