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
a7df23c8
Commit
a7df23c8
authored
Sep 02, 2022
by
chenweitao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'working' into 'master'
更新新浪热榜采集链接 See merge request
!199
parents
4fba311c
466ef41d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
src/main/java/com/zhiwei/searchhotcrawler/crawler/XinLangHotSearchCrawler.java
+9
-8
No files found.
src/main/java/com/zhiwei/searchhotcrawler/crawler/XinLangHotSearchCrawler.java
View file @
a7df23c8
...
@@ -68,14 +68,15 @@ public class XinLangHotSearchCrawler {
...
@@ -68,14 +68,15 @@ public class XinLangHotSearchCrawler {
}
else
{
}
else
{
showTags
=
jsonArray
.
getJSONObject
(
i
).
getString
(
"showTags"
);
showTags
=
jsonArray
.
getJSONObject
(
i
).
getString
(
"showTags"
);
}
}
String
routeUri
=
jsonArray
.
getJSONObject
(
i
).
getString
(
"routeUri"
);
String
xinLangUrl
=
jsonArray
.
getJSONObject
(
i
).
getString
(
"link"
);
String
xinLangUrl
=
null
;
// String routeUri = jsonArray.getJSONObject(i).getString("routeUri");
if
(
routeUri
.
contains
(
"groupId"
))
{
// String xinLangUrl = null;
xinLangUrl
=
"https://super.sina.cn/shequn/forum/detail_"
+
// if (routeUri.contains("groupId")) {
routeUri
.
substring
(
routeUri
.
indexOf
(
"groupId="
)
+
8
)
+
".html"
;
// xinLangUrl = "https://super.sina.cn/shequn/forum/detail_" +
}
else
{
// routeUri.substring(routeUri.indexOf("groupId=") + 8) + ".html";
xinLangUrl
=
"https://m.so.com/s?q="
+
URLCodeUtil
.
getURLEncode
(
name
,
"utf-8"
)+
"&src=dfttrc&srcg=sina_shoulang_act"
;
// }else{
}
// xinLangUrl = "https://m.so.com/s?q="+ URLCodeUtil.getURLEncode(name, "utf-8")+"&src=dfttrc&srcg=sina_shoulang_act";
// }
String
icon
=
null
;
String
icon
=
null
;
if
(
Objects
.
nonNull
(
showTags
))
{
if
(
Objects
.
nonNull
(
showTags
))
{
if
(
showTags
.
contains
(
"新"
))
{
if
(
showTags
.
contains
(
"新"
))
{
...
...
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