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
4ac6afdf
Commit
4ac6afdf
authored
Mar 09, 2018
by
zhiwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自媒体匹配数据添加易车网、汽车之家
parent
7bccfb23
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/TreateData.java
+12
-0
No files found.
src/main/java/com/zhiwei/source_forward/util/TreateData.java
View file @
4ac6afdf
...
@@ -181,6 +181,18 @@ public class TreateData {
...
@@ -181,6 +181,18 @@ public class TreateData {
}
else
{
}
else
{
source
=
html
.
split
(
"source\":\""
)[
1
].
split
(
"\",\""
)[
0
];
source
=
html
.
split
(
"source\":\""
)[
1
].
split
(
"\",\""
)[
0
];
}
}
}
else
if
(
url
.
contains
(
"news.bitauto.com"
)){
source
=
document
.
select
(
"[class=\"gz-box clearfix\"]"
).
select
(
"div.txt-box"
)
.
select
(
"p.p-n"
).
select
(
"a"
).
text
();
if
(
source
!=
null
&&
!
source
.
equals
(
""
)){
source
=
"易车网-"
+
source
;
}
}
else
if
(
url
.
contains
(
"chejiahao.autohome.com.cn"
)){
source
=
document
.
select
(
"div.authorMes"
).
select
(
"[class=\"name text-overflow\"]"
)
.
select
(
"a"
).
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