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
41d50c1f
Commit
41d50c1f
authored
Jun 10, 2022
by
chenweitao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'working' into 'master'
更新腾讯新闻链接 See merge request
!195
parents
40bd980d
f4fc46aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/main/java/com/zhiwei/searchhotcrawler/crawler/TengXunCrawler.java
+3
-2
No files found.
src/main/java/com/zhiwei/searchhotcrawler/crawler/TengXunCrawler.java
View file @
41d50c1f
...
...
@@ -50,18 +50,19 @@ public class TengXunCrawler {
Integer
rank
=
i
;
String
name
=
dataJson
.
getJSONObject
(
i
).
getString
(
"title"
);
String
urlID
=
dataJson
.
getJSONObject
(
i
).
getString
(
"id"
);
String
ur
=
dataJson
.
getJSONObject
(
i
).
getString
(
"url"
);
String
tengxunUrl
=
null
;
//String tengxunUrl = "https://view.inews.qq.com/topic/" + dataJson.getJSONObject(i).getString("id");
Long
count
=
null
;
String
icon
=
null
;
if
(
dataJson
.
getJSONObject
(
i
).
containsKey
(
"topic"
))
{
tengxunUrl
=
"https://view.inews.qq.com/topic/"
+
urlID
;
tengxunUrl
=
ur
+
urlID
;
count
=
dataJson
.
getJSONObject
(
i
).
getJSONObject
(
"topic"
).
getLongValue
(
"ranking_score"
);
if
(
dataJson
.
getJSONObject
(
i
).
getJSONObject
(
"topic"
).
containsKey
(
"rec_icon"
))
{
icon
=
dataJson
.
getJSONObject
(
i
).
getJSONObject
(
"topic"
).
getString
(
"rec_icon"
);
}
}
else
if
(
dataJson
.
getJSONObject
(
i
).
containsKey
(
"hotEvent"
))
{
tengxunUrl
=
"https://view.inews.qq.com/hotEvent/"
+
urlID
;
tengxunUrl
=
ur
+
urlID
;
count
=
dataJson
.
getJSONObject
(
i
).
getJSONObject
(
"hotEvent"
).
getLongValue
(
"hotScore"
);
if
(
dataJson
.
getJSONObject
(
i
).
getJSONObject
(
"hotEvent"
).
containsKey
(
"rec_icon"
))
{
icon
=
dataJson
.
getJSONObject
(
i
).
getJSONObject
(
"hotEvent"
).
getString
(
"rec_icon"
);
...
...
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