Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
searchhotcrawler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhiwei
searchhotcrawler
Commits
1ca2209f
Commit
1ca2209f
authored
Jul 19, 2021
by
leiliangliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关闭淘宝爬取程序
parent
dd0e065d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
src/main/java/com/zhiwei/searchhotcrawler/timer/quartz/GatherTimer.java
+13
-13
No files found.
src/main/java/com/zhiwei/searchhotcrawler/timer/quartz/GatherTimer.java
View file @
1ca2209f
...
@@ -520,17 +520,17 @@ public class GatherTimer {
...
@@ -520,17 +520,17 @@ public class GatherTimer {
TipsUtils
.
addHotList
(
HotSearchType
.
快手热榜
.
name
(),
kuaiShouList
);
TipsUtils
.
addHotList
(
HotSearchType
.
快手热榜
.
name
(),
kuaiShouList
);
logger
.
info
(
"快手热榜采集结束..."
);
logger
.
info
(
"快手热榜采集结束..."
);
}
}
/**
//
/**
*淘宝热搜采集
//
*淘宝热搜采集
*/
//
*/
@Async
(
value
=
"myScheduler"
)
//
@Async(value = "myScheduler")
@Scheduled
(
cron
=
"0 * * * * ? "
)
//
@Scheduled(cron = "0 * * * * ? ")
public
void
crawlerTaoBao
(){
//
public void crawlerTaoBao(){
logger
.
info
(
"淘宝热搜开始采集..."
);
//
logger.info("淘宝热搜开始采集...");
Date
date
=
DateUtils
.
getMillSecondTime
(
new
Date
());
//
Date date = DateUtils.getMillSecondTime(new Date());
List
<
HotSearchList
>
taoBaoList
=
TaoBaoHotSearchCrawler
.
taoBaoHotSearch
(
date
);
//
List<HotSearchList> taoBaoList = TaoBaoHotSearchCrawler.taoBaoHotSearch(date);
logger
.
info
(
"{}, 淘宝热搜此轮采集到的数据量为:{}"
,
new
Date
(),
taoBaoList
!=
null
?
taoBaoList
.
size
()
:
0
);
//
logger.info("{}, 淘宝热搜此轮采集到的数据量为:{}", new Date(), taoBaoList != null ? taoBaoList.size() : 0);
TipsUtils
.
addHotList
(
HotSearchType
.
淘宝热搜
.
name
(),
taoBaoList
);
//
TipsUtils.addHotList(HotSearchType.淘宝热搜.name(), taoBaoList);
logger
.
info
(
"淘宝热搜采集结束..."
);
//
logger.info("淘宝热搜采集结束...");
}
//
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment