Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
加钱居士.
foot
提交
33b19bea
F
foot
项目概览
加钱居士.
/
foot
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
foot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
33b19bea
编写于
3月 13, 2020
作者:
S
shi.zeyuan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.修正比赛时间bug
上级
e115b395
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
6 deletion
+9
-6
FS000.go
FS000.go
+1
-1
foot-spider/launch/FS101PortalApplication.go
foot-spider/launch/FS101PortalApplication.go
+5
-0
foot-spider/module/win007/proc/LeagueSeasonProcesser.go
foot-spider/module/win007/proc/LeagueSeasonProcesser.go
+1
-3
foot-spider/module/win007/proc/MatchHisProcesser.go
foot-spider/module/win007/proc/MatchHisProcesser.go
+2
-2
未找到文件。
FS000.go
浏览文件 @
33b19bea
...
...
@@ -14,7 +14,7 @@ func main() {
parse2
:=
add
.
Format
(
"2006"
)
fmt
.
Println
(
parse
)
fmt
.
Println
(
parse2
)
launch
.
Spider_leagueSeason
()
launch
.
Spider_History
()
}
...
...
foot-spider/launch/FS101PortalApplication.go
浏览文件 @
33b19bea
...
...
@@ -72,10 +72,15 @@ func Spider_History() {
for
_
,
v
:=
range
seasons
{
Spider_match_his
(
v
)
time
.
Sleep
(
58
*
time
.
Minute
)
Spider_baseFace_his
(
v
)
time
.
Sleep
(
58
*
time
.
Minute
)
Spider_asiaLastNew_his
(
v
)
time
.
Sleep
(
58
*
time
.
Minute
)
Spider_euroLast_his
(
v
)
time
.
Sleep
(
58
*
time
.
Minute
)
Spider_euroHis_his
(
v
)
time
.
Sleep
(
58
*
time
.
Minute
)
}
}
foot-spider/module/win007/proc/LeagueSeasonProcesser.go
浏览文件 @
33b19bea
...
...
@@ -103,7 +103,6 @@ func (this *LeagueSeasonProcesser) season_process(htmlParser *goquery.Document,
temp_id
=
strings
.
Replace
(
temp_id
,
"ToAnaly("
,
""
,
1
)
temp_id
=
strings
.
Replace
(
temp_id
,
",-1)"
,
""
,
1
)
temp_id
=
strings
.
TrimSpace
(
temp_id
)
base
.
Log
.
Info
(
"比赛ID为:"
,
temp_id
)
val_arr
:=
make
([]
string
,
0
)
selection
.
Find
(
"td"
)
.
Each
(
func
(
i
int
,
selection
*
goquery
.
Selection
)
{
...
...
@@ -117,9 +116,8 @@ func (this *LeagueSeasonProcesser) season_process(htmlParser *goquery.Document,
index
:=
0
//比赛时间
index
++
temp_matchDate
:=
val_arr
[
index
]
month
,
_
:=
strconv
.
Atoi
(
temp_matchDate
[
:
1
])
month
,
_
:=
strconv
.
Atoi
(
temp_matchDate
[
:
2
])
beginMonth
=
month
})
}
...
...
foot-spider/module/win007/proc/MatchHisProcesser.go
浏览文件 @
33b19bea
...
...
@@ -119,8 +119,8 @@ func (this *MatchHisProcesser) Process(p *page.Page) {
seasonYear
:=
season
.
Season
if
strings
.
Contains
(
season
.
Season
,
"-"
)
{
season_arr
:=
strings
.
Split
(
season
.
Season
,
"-"
)
month
,
_
:=
strconv
.
Atoi
(
temp_matchDate
[
:
1
])
if
month
<
season
.
BeginMonth
{
month
,
_
:=
strconv
.
Atoi
(
temp_matchDate
[
:
2
])
if
month
>=
season
.
BeginMonth
{
seasonYear
=
season_arr
[
0
]
}
else
{
seasonYear
=
season_arr
[
1
]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录