【源码简介】
是一个基于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;
}
}




