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
4607dd43
Commit
4607dd43
authored
Sep 03, 2020
by
马黎滨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微博预热榜添加
parent
e03ea262
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
src/main/java/com/zhiwei/searchhotcrawler/bean/HotSearchType.java
+2
-1
src/main/java/com/zhiwei/searchhotcrawler/timer/quartz/GatherTimer.java
+11
-0
No files found.
src/main/java/com/zhiwei/searchhotcrawler/bean/HotSearchType.java
View file @
4607dd43
...
...
@@ -16,5 +16,6 @@ public enum HotSearchType {
凤凰新闻热榜
,
凤凰新闻热搜
,
网易热榜
,
网易跟帖热议
网易跟帖热议
,
微博预热榜
}
src/main/java/com/zhiwei/searchhotcrawler/timer/quartz/GatherTimer.java
View file @
4607dd43
...
...
@@ -261,6 +261,17 @@ public class GatherTimer {
logger
.
info
(
"知乎热搜话题采集结束..."
);
}
// @Async(value = "myScheduler")
// @Scheduled(cron = "20 * * * * ? ")
public
void
crawlerWeiBoPreheat
(){
logger
.
info
(
"微博预热榜开始采集..."
);
Date
date
=
DateUtils
.
getMillSecondTime
(
new
Date
());
List
<
HotSearchList
>
list
=
WeiboHotSearchCrawler
.
weiboPreheatSearch
(
date
);
logger
.
info
(
"{},微博预热榜此轮采集到的数据量为:{}"
,
new
Date
(),
Integer
.
valueOf
(
list
!=
null
?
list
.
size
()
:
0
));
TipsUtils
.
addHotList
(
HotSearchType
.
微博预热榜
.
name
(),
list
);
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