Browse Source

功能修改

mxs 9 months ago
parent
commit
9186993773
2 changed files with 1 additions and 13 deletions
  1. 0 12
      backend/vm/single.go
  2. 1 1
      backend/webservice/webservice.go

+ 0 - 12
backend/vm/single.go

@@ -204,18 +204,6 @@ func (vm *VM) RunSpider(url string, maxPages int, listDealy int64, contentDelay
 
 
 // InitPage 初始化页面
 // InitPage 初始化页面
 func (vm *VM) InitListPage(ctx context.Context, sc *be.SpiderConfig) (initPage bool) {
 func (vm *VM) InitListPage(ctx context.Context, sc *be.SpiderConfig) (initPage bool) {
-	//	var initPage []*be.Actions
-	//	initPage = append(initPage, &be.Actions{
-	//		Action: `var initHtml = document.querySelector("#showList").outerText;var clicklabel = document.querySelector("#catefirst > a:nth-child(3)");if(clicklabel)clicklabel.click();"";`,
-	//		//Check: `var oneHtml = document.querySelector("#showList").outerText;(oneHtml === initHtml)?"false":"true"`,
-	//		Sleep: 1000,
-	//	})
-	//	initPage = append(initPage, &be.Actions{
-	//		Action: `var clicklabel = document.querySelector("#zfcg > a:nth-child(2)");if(clicklabel)clicklabel.click();"";`,
-	//		//Check:  `var twoHtml = document.querySelector("#showList").outerText;(twoHtml === oneHtml)?"false":"true"`,
-	//		Sleep: 1000,
-	//	})
-	//	sc.InitList = initPage
 	if len(sc.InitList) == 0 { //没有初始化页面行为
 	if len(sc.InitList) == 0 { //没有初始化页面行为
 		return true
 		return true
 	}
 	}

+ 1 - 1
backend/webservice/webservice.go

@@ -144,5 +144,5 @@ func SetCurrentTabCssMark(cssMark map[string]interface{}) {
 		qu.Debug("标注信息传输失败!")
 		qu.Debug("标注信息传输失败!")
 	}
 	}
 	currentTabSpiderConfig = sc
 	currentTabSpiderConfig = sc
-	qu.Debug("当前编辑爬虫链接:", currentTabSpiderConfig)
+	//qu.Debug("当前编辑爬虫链接:", *currentTabSpiderConfig)
 }
 }