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
0f550f15
Commit
0f550f15
authored
Apr 24, 2022
by
chenweitao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'working' into 'master'
头条财经,汽车,科技,数码榜采集程序上线 See merge request
!185
parents
bb30e37a
952feb78
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
src/main/java/com/zhiwei/searchhotcrawler/crawler/ToutiaoHotSearchCrawler.java
+0
-0
src/main/java/com/zhiwei/searchhotcrawler/timer/quartz/GatherTimer.java
+18
-0
No files found.
src/main/java/com/zhiwei/searchhotcrawler/crawler/ToutiaoHotSearchCrawler.java
View file @
0f550f15
This diff is collapsed.
Click to expand it.
src/main/java/com/zhiwei/searchhotcrawler/timer/quartz/GatherTimer.java
View file @
0f550f15
...
...
@@ -652,4 +652,22 @@ public class GatherTimer {
TipsUtils
.
addHotList
(
HotSearchType
.
微博出圈榜
.
name
(),
weiBoOutCircleList
);
log
.
info
(
" 微博出圈榜采集结束........"
);
}
/**
* 头条财经,科技,汽车,数码榜采集
*/
@Async
(
value
=
"myScheduler"
)
@Scheduled
(
cron
=
"0 * * * * ? "
)
public
void
toutiaoOtherListByPhone
(){
log
.
info
(
" 头条财经,科技,汽车,数码榜采集开始........"
);
Date
date
=
DateUtils
.
getMillSecondTime
(
new
Date
());
Map
<
String
,
List
<
HotSearchList
>>
map
=
ToutiaoHotSearchCrawler
.
toutiaoOtherListByPhone
(
date
);
for
(
Map
.
Entry
<
String
,
List
<
HotSearchList
>>
entry
:
map
.
entrySet
())
{
String
mapKey
=
entry
.
getKey
();
List
<
HotSearchList
>
toutiaoOtherList
=
entry
.
getValue
();
log
.
info
(
"{}, "
+
mapKey
+
"此轮采集到的数据量为:{}"
,
new
Date
(),
toutiaoOtherList
!=
null
?
toutiaoOtherList
.
size
()
:
0
);
TipsUtils
.
addHotList
(
mapKey
,
toutiaoOtherList
);
}
log
.
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