Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source_forward
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
source_forward
Commits
b7e91b0a
Commit
b7e91b0a
authored
Aug 23, 2019
by
win 10
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增了观察者、传送门两个自媒体的来源匹配
parent
48f2decf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/main/java/com/zhiwei/source_forward/util/MatchSource.java
+10
-0
No files found.
src/main/java/com/zhiwei/source_forward/util/MatchSource.java
View file @
b7e91b0a
...
@@ -464,6 +464,11 @@ public class MatchSource {
...
@@ -464,6 +464,11 @@ public class MatchSource {
source
=
document
.
select
(
"div.main-tow > div.box-left > div.article-content > div:nth-child(3) > div.user-main > h4 > a"
).
text
();
source
=
document
.
select
(
"div.main-tow > div.box-left > div.article-content > div:nth-child(3) > div.user-main > h4 > a"
).
text
();
if
(
Objects
.
nonNull
(
source
)
&&
!
source
.
isEmpty
()){
if
(
Objects
.
nonNull
(
source
)
&&
!
source
.
isEmpty
()){
source
=
"风闻社区-"
+
source
;
source
=
"风闻社区-"
+
source
;
}
else
{
source
=
document
.
select
(
"div.author-intro.fix > p > a"
).
text
();
if
(
Objects
.
nonNull
(
source
)
&&
!
source
.
isEmpty
()){
source
=
"观察者-"
+
source
;
}
}
}
}
else
if
(
url
.
contains
(
"yesky.com"
)){
}
else
if
(
url
.
contains
(
"yesky.com"
)){
// 天极自媒体
// 天极自媒体
...
@@ -646,6 +651,11 @@ public class MatchSource {
...
@@ -646,6 +651,11 @@ public class MatchSource {
if
(
source
!=
null
&&
!
source
.
equals
(
""
))
{
if
(
source
!=
null
&&
!
source
.
equals
(
""
))
{
source
=
"虎嗅-"
+
source
;
source
=
"虎嗅-"
+
source
;
}
}
}
else
if
(
url
.
contains
(
"chuansongme.com"
))
{
source
=
document
.
select
(
"div.rich_media_meta_list > span.rich_media_meta.rich_media_meta_text"
).
text
();
if
(
source
!=
null
&&
!
source
.
equals
(
""
))
{
source
=
"传送门-"
+
source
;
}
}
}
return
source
;
return
source
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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