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
ea0833d3
Commit
ea0833d3
authored
Jun 01, 2020
by
cwy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自媒体 账号获取修改
parent
dad70819
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
src/main/java/com/zhiwei/source_forward/crawler/MediaSelfSourceCrawler.java
+7
-0
src/main/java/com/zhiwei/source_forward/run/MediaSelfSource.java
+1
-1
No files found.
src/main/java/com/zhiwei/source_forward/crawler/MediaSelfSourceCrawler.java
View file @
ea0833d3
...
@@ -137,9 +137,16 @@ public class MediaSelfSourceCrawler {
...
@@ -137,9 +137,16 @@ public class MediaSelfSourceCrawler {
if
(
url
.
contains
(
"wap.peopleapp.com/article"
))
{
if
(
url
.
contains
(
"wap.peopleapp.com/article"
))
{
return
"https://app.peopleapp.com/WapApi/610/ArtInfoApi/getInfoUp?id="
+
url
.
split
(
"article"
)[
1
].
split
(
"/"
)[
1
];
return
"https://app.peopleapp.com/WapApi/610/ArtInfoApi/getInfoUp?id="
+
url
.
split
(
"article"
)[
1
].
split
(
"/"
)[
1
];
}
}
if
(
url
.
contains
(
"new.qq.com"
))
{
if
(
url
.
contains
(
"cmsid"
))
{
return
"https://new.qq.com/rain/a/"
+
url
.
split
(
"cmsid="
)[
1
];
}
return
"https://new.qq.com/rain/a/"
+
url
.
split
(
"/"
)[
url
.
split
(
"/"
).
length
-
1
].
split
(
"\\?"
)[
0
].
split
(
"\\."
)[
0
];
}
return
url
;
return
url
;
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
return
null
;
return
null
;
}
}
...
...
src/main/java/com/zhiwei/source_forward/run/MediaSelfSource.java
View file @
ea0833d3
...
@@ -32,7 +32,7 @@ public class MediaSelfSource {
...
@@ -32,7 +32,7 @@ public class MediaSelfSource {
ProxyInit
.
initProxy
();
ProxyInit
.
initProxy
();
List
<
String
>
urlList
=
new
ArrayList
<>();
List
<
String
>
urlList
=
new
ArrayList
<>();
urlList
.
add
(
"http
://iphone.myzaker.com/l.php?l=5ec0d951b15ec0157b6b4e46
"
);
urlList
.
add
(
"http
s://new.qq.com/rain/a/20200511A0LUU600
"
);
List
<
MediaSelfSourceBean
>
u
=
MediaSelfSource
.
getMediaSelfSource
(
urlList
);
List
<
MediaSelfSourceBean
>
u
=
MediaSelfSource
.
getMediaSelfSource
(
urlList
);
for
(
MediaSelfSourceBean
b
:
u
)
{
for
(
MediaSelfSourceBean
b
:
u
)
{
...
...
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