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
256d62f0
Commit
256d62f0
authored
Jan 11, 2019
by
yangchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
买车网 汽车头条 自媒体获取
parent
fd10ecff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/main/java/com/zhiwei/source_forward/util/MatchSource.java
+12
-0
No files found.
src/main/java/com/zhiwei/source_forward/util/MatchSource.java
View file @
256d62f0
...
...
@@ -218,6 +218,18 @@ public class MatchSource {
if
(
source
!=
null
&&
source
.
length
()>
1
){
source
=
"网易号-"
+
source
;
}
}
else
if
(
url
.
contains
(
"qctt.cn"
)){
//汽车头条
source
=
document
.
select
(
"div.part2>a"
).
text
();
if
(
source
!=
null
&&
source
.
length
()>
1
){
source
=
"汽车头条-"
+
source
;
}
}
else
if
(
url
.
contains
(
"maiche.com"
)){
//买车网
source
=
document
.
select
(
"div.info-left > div:nth-child(2) > span > a"
).
text
();
if
(
source
!=
null
&&
source
.
length
()>
1
){
source
=
"买车网-"
+
source
;
}
}
return
source
;
}
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