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
7e9c499e
Commit
7e9c499e
authored
Aug 03, 2020
by
马黎滨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mlbWork' into 'master'
话题采集预警恢复 See merge request
!12
parents
fb4eb0ca
c545511e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
7 deletions
+7
-7
src/main/java/com/zhiwei/searchhotcrawler/timer/SougoHotSearchRun.java
+1
-1
src/main/java/com/zhiwei/searchhotcrawler/timer/ToutiaoHotSearchRun.java
+1
-1
src/main/java/com/zhiwei/searchhotcrawler/timer/WeiboHotSearchRun.java
+1
-1
src/main/java/com/zhiwei/searchhotcrawler/timer/WeiboTopicRun.java
+1
-1
src/main/java/com/zhiwei/searchhotcrawler/timer/ZhihuChildHotSearchRun.java
+1
-1
src/main/java/com/zhiwei/searchhotcrawler/timer/ZhihuHotSearchRun.java
+1
-1
src/main/java/com/zhiwei/searchhotcrawler/timer/ZhihuTopSearchRun.java
+1
-1
No files found.
src/main/java/com/zhiwei/searchhotcrawler/timer/SougoHotSearchRun.java
View file @
7e9c499e
...
...
@@ -49,7 +49,7 @@ public class SougoHotSearchRun extends Thread {
}
else
{
List
<
Document
>
data
=
hotSearchCacheDAO
.
addData
(
list
);
hotSearchDAO
.
addHotSearchList
(
data
);
TipsUtils
.
send
Tips
(
"搜狗微信热搜"
,
new
Date
());
TipsUtils
.
recovery
Tips
(
"搜狗微信热搜"
,
new
Date
());
}
log
.
info
(
"搜狗微信采集结束........"
);
}
...
...
src/main/java/com/zhiwei/searchhotcrawler/timer/ToutiaoHotSearchRun.java
View file @
7e9c499e
...
...
@@ -45,7 +45,7 @@ public class ToutiaoHotSearchRun extends Thread{
}
else
{
List
<
Document
>
data
=
hotSearchCacheDAO
.
addData
(
list
);
hotSearchDAO
.
addHotSearchList
(
data
);
TipsUtils
.
send
Tips
(
"今日头条热搜"
,
new
Date
());
TipsUtils
.
recovery
Tips
(
"今日头条热搜"
,
new
Date
());
}
log
.
info
(
"今日头条热搜采集结束........"
);
}
...
...
src/main/java/com/zhiwei/searchhotcrawler/timer/WeiboHotSearchRun.java
View file @
7e9c499e
...
...
@@ -43,7 +43,7 @@ public class WeiboHotSearchRun extends Thread{
}
else
{
List
<
Document
>
data
=
hotSearchCacheDAO
.
addData
(
list
);
hotSearchDAO
.
addHotSearchList
(
data
);
TipsUtils
.
send
Tips
(
"微博热搜"
,
new
Date
());
TipsUtils
.
recovery
Tips
(
"微博热搜"
,
new
Date
());
}
}
...
...
src/main/java/com/zhiwei/searchhotcrawler/timer/WeiboTopicRun.java
View file @
7e9c499e
...
...
@@ -41,7 +41,7 @@ public class WeiboTopicRun extends Thread{
if
(
list
==
null
||
list
.
size
()
==
0
){
TipsUtils
.
sendTips
(
"微博话题"
,
new
Date
());
}
else
{
TipsUtils
.
send
Tips
(
"微博话题"
,
new
Date
());
TipsUtils
.
recovery
Tips
(
"微博话题"
,
new
Date
());
}
List
<
Document
>
data
=
new
ArrayList
<>();
for
(
HotSearchList
topic
:
list
){
...
...
src/main/java/com/zhiwei/searchhotcrawler/timer/ZhihuChildHotSearchRun.java
View file @
7e9c499e
...
...
@@ -47,7 +47,7 @@ public class ZhihuChildHotSearchRun extends Thread {
}
else
{
List
<
Document
>
data
=
hotSearchCacheDAO
.
addData
(
list
);
hotSearchDAO
.
addHotSearchList
(
data
);
TipsUtils
.
send
Tips
(
"知乎热搜"
+
name
+
"分类"
,
new
Date
());
TipsUtils
.
recovery
Tips
(
"知乎热搜"
+
name
+
"分类"
,
new
Date
());
}
log
.
info
(
"知乎{}话题热榜采集结束..."
,
name
);
ZhiWeiTools
.
sleep
(
3000
);
...
...
src/main/java/com/zhiwei/searchhotcrawler/timer/ZhihuHotSearchRun.java
View file @
7e9c499e
...
...
@@ -50,7 +50,7 @@ public class ZhihuHotSearchRun extends Thread{
}
else
{
List
<
Document
>
data
=
hotSearchCacheDAO
.
addData
(
list
);
hotSearchDAO
.
addHotSearchList
(
data
);
TipsUtils
.
send
Tips
(
"知乎热搜"
,
new
Date
());
TipsUtils
.
recovery
Tips
(
"知乎热搜"
,
new
Date
());
}
log
.
info
(
"知乎话题采集结束........"
);
}
...
...
src/main/java/com/zhiwei/searchhotcrawler/timer/ZhihuTopSearchRun.java
View file @
7e9c499e
...
...
@@ -42,7 +42,7 @@ public class ZhihuTopSearchRun extends Thread {
}
else
{
List
<
Document
>
data
=
hotSearchCacheDAO
.
addData
(
list
);
hotSearchDAO
.
addHotSearchList
(
data
);
TipsUtils
.
send
Tips
(
"知乎热搜榜单"
,
new
Date
());
TipsUtils
.
recovery
Tips
(
"知乎热搜榜单"
,
new
Date
());
}
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