Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
加钱居士.
foot
提交
16ed7cca
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,发现更多精彩内容 >>
提交
16ed7cca
编写于
3月 14, 2020
作者:
M
monomania
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.优化爬虫线程带出的bug
上级
e9d489ce
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
6 deletion
+13
-6
FS000.go
FS000.go
+2
-2
conf/app.ini
conf/app.ini
+4
-2
conf/app_prod.ini
conf/app_prod.ini
+2
-0
foot-spider/launch/FS101PortalApplication.go
foot-spider/launch/FS101PortalApplication.go
+5
-2
未找到文件。
FS000.go
浏览文件 @
16ed7cca
...
...
@@ -15,8 +15,8 @@ func main() {
fmt
.
Println
(
parse
)
fmt
.
Println
(
parse2
)
//launch.Spider_match_his("2019")
//
launch.Spider_History()
launch
.
Spider_leagueSeason
()
launch
.
Spider_History
()
//
launch.Spider_leagueSeason()
}
conf/app.ini
浏览文件 @
16ed7cca
[mysql]
#
url=root:Meta.123@tcp(mysql.io:3306)/foot?charset=utf8
url
=
root:awe.FOG5188@tcp(39.108.212.245:3306)/foot?charset=utf8
url
=
root:Meta.123@tcp(mysql.io:3306)/foot?charset=utf8
#
url=root:awe.FOG5188@tcp(39.108.212.245:3306)/foot?charset=utf8
maxIdle
=
10
maxConn
=
50
[cookies]
...
...
@@ -23,6 +23,8 @@ cycle_time=48
euro_comp_ids
=
81,616,104,281,1129
###配置要爬取亚赔的博彩公司ID,使用,间隔,为空或不配置则爬取全部(暂不必,因目前win007提供的新api就是抓取全部)
asia_comp_id
=
##是否去爬取联赛信息
league_switch
=
false
#配置要抓取的历史数据的赛季年份,使用,间隔
history_season
=
2019
[analy]
...
...
conf/app_prod.ini
浏览文件 @
16ed7cca
...
...
@@ -22,6 +22,8 @@ cycle_time=48
euro_comp_ids
=
81,616,104,281,1129
###配置要爬取亚赔的博彩公司ID,使用,间隔,为空或不配置则爬取全部(暂不必,因目前win007提供的新api就是抓取全部)
asia_comp_id
=
##是否去爬取联赛信息
league_switch
=
false
#配置要抓取的历史数据的赛季年份,使用,间隔
history_season
=
2018,2019
[analy]
...
...
foot-spider/launch/FS101PortalApplication.go
浏览文件 @
16ed7cca
...
...
@@ -56,8 +56,11 @@ func Spider_Near() {
}
func
Spider_History
()
{
Spider_league
()
Spider_leagueSeason
()
league_switch
:=
utils
.
GetVal
(
"spider"
,
"league_switch"
)
if
len
(
league_switch
)
>
0
&&
strings
.
EqualFold
(
league_switch
,
"true"
)
{
Spider_league
()
Spider_leagueSeason
()
}
//执行抓取比赛数据
//执行抓取比赛欧赔数据
//执行抓取亚赔数据
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录