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
da89439e
Commit
da89439e
authored
Jan 28, 2021
by
马黎滨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mlb-template-local' into 'mlbWork'
脉脉热榜采集修改 See merge request
!69
parents
84ce86e8
f183be6b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
src/main/java/com/zhiwei/searchhotcrawler/dao/HotSearchCacheDAO.java
+1
-1
src/main/java/com/zhiwei/searchhotcrawler/timer/quartz/GatherTimer.java
+6
-0
No files found.
src/main/java/com/zhiwei/searchhotcrawler/dao/HotSearchCacheDAO.java
View file @
da89439e
...
@@ -150,7 +150,7 @@ public class HotSearchCacheDAO {
...
@@ -150,7 +150,7 @@ public class HotSearchCacheDAO {
collection
.
replaceOne
(
query
,
nowDoc
);
collection
.
replaceOne
(
query
,
nowDoc
);
}
else
{
}
else
{
nowDoc
=
new
Document
();
nowDoc
=
new
Document
();
int
durationNow
=
getDuration
(
type
,
0
)
;
int
durationNow
=
1
;
nowDoc
.
put
(
"_id"
,
id
);
nowDoc
.
put
(
"_id"
,
id
);
nowDoc
.
put
(
"url"
,
url
);
nowDoc
.
put
(
"url"
,
url
);
nowDoc
.
put
(
"name"
,
name
);
nowDoc
.
put
(
"name"
,
name
);
...
...
src/main/java/com/zhiwei/searchhotcrawler/timer/quartz/GatherTimer.java
View file @
da89439e
...
@@ -369,6 +369,12 @@ public class GatherTimer {
...
@@ -369,6 +369,12 @@ public class GatherTimer {
public
void
crawlerMaiMaiHotSearch
(){
public
void
crawlerMaiMaiHotSearch
(){
Date
date
=
DateUtils
.
getMillSecondTime
(
new
Date
());
Date
date
=
DateUtils
.
getMillSecondTime
(
new
Date
());
List
<
HotSearchList
>
list
=
MaiMaiHotSearchCrawler
.
getMaiMaiHotData
(
date
);
List
<
HotSearchList
>
list
=
MaiMaiHotSearchCrawler
.
getMaiMaiHotData
(
date
);
int
i
=
0
;
while
(
list
.
size
()==
0
&&
i
<
10
){
ZhiWeiTools
.
sleep
(
5000L
);
list
=
MaiMaiHotSearchCrawler
.
getMaiMaiHotData
(
date
);
i
++;
}
TipsUtils
.
addHotList
(
HotSearchType
.
脉脉热榜
.
name
(),
list
);
TipsUtils
.
addHotList
(
HotSearchType
.
脉脉热榜
.
name
(),
list
);
}
}
...
...
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