rdluck 3 years ago
parent
commit
739b0f4bd5
4 changed files with 4 additions and 3 deletions
  1. 1 1
      go.mod
  2. BIN
      hongze_data_crawler
  3. 2 1
      services/commodity_exchange_zhengzhou.go
  4. 1 1
      services/task.go

+ 1 - 1
go.mod

@@ -14,4 +14,4 @@ require (
 	rdluck_tools v0.0.0
 )
 
-replace rdluck_tools => E:\code\go\src\rdluck_tools
+replace rdluck_tools => /Users/rdluck/Documents/code/go/src/rdluck_tools

BIN
hongze_data_crawler


+ 2 - 1
services/commodity_exchange_zhengzhou.go

@@ -28290,8 +28290,9 @@ func SyncRankingFromZhenzhou() {
 		tds := tr.Find("td")
 		if tds.Length() == 1 {
 			tdText := tds.Text()
+			utils.FileLog.Info(tdText)
 			if tdText != "" {
-				tdTextArr := strings.Split(tdText, " ")
+				tdTextArr := strings.Split(tdText, "    ")
 				for k, v := range tdTextArr {
 					fmt.Println(k, v)
 					utils.FileLog.Info(v)

+ 1 - 1
services/task.go

@@ -7,7 +7,7 @@ import (
 func Task() {
 	fmt.Println("start crawler")
 	//同步郑州商品交易所排名
-	//SyncRankingFromZhenzhou()
+	SyncRankingFromZhenzhou()
 
 
 	//str:=`品种:苹果AP    日期:2021-10-15`