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
7b2883ee
Commit
7b2883ee
authored
Jan 24, 2019
by
yangchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 百家号 source获取
parent
c799bd00
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/main/java/com/zhiwei/source_forward/util/MatchSource.java
+1
-1
No files found.
src/main/java/com/zhiwei/source_forward/util/MatchSource.java
View file @
7b2883ee
...
@@ -166,7 +166,7 @@ public class MatchSource {
...
@@ -166,7 +166,7 @@ public class MatchSource {
}
}
}
else
if
(
url
.
contains
(
"baijiahao.baidu.com"
)){
}
else
if
(
url
.
contains
(
"baijiahao.baidu.com"
)){
//百度百家
//百度百家
source
=
document
.
select
(
"div.author"
).
select
(
"div.author-txt"
).
select
(
"p.author-name"
).
text
().
trim
();
source
=
document
.
select
(
"p.author-name"
).
first
(
).
text
().
trim
();
if
(
source
!=
null
&&
source
.
length
()>
1
){
if
(
source
!=
null
&&
source
.
length
()>
1
){
source
=
"百度百家-"
+
source
;
source
=
"百度百家-"
+
source
;
}
}
...
...
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