Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
toutiao
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
toutiao
Commits
fdb8e380
Commit
fdb8e380
authored
Nov 17, 2018
by
[zhangzhiwei]
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zhiwei-tools
parent
255db67e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
pom.xml
+2
-2
src/main/java/com/zhiwei/toutiao/parse/TouTiaoAccountParse.java
+1
-0
No files found.
pom.xml
View file @
fdb8e380
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.zhiwei
</groupId>
<groupId>
com.zhiwei
</groupId>
<artifactId>
toutiao
</artifactId>
<artifactId>
toutiao
</artifactId>
<version>
0.2.
3
-SNAPSHOT
</version>
<version>
0.2.
4
-SNAPSHOT
</version>
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
com.zhiwei.tools
</groupId>
<groupId>
com.zhiwei.tools
</groupId>
<artifactId>
zhiwei-tools
</artifactId>
<artifactId>
zhiwei-tools
</artifactId>
<version>
0.0.
8
-SNAPSHOT
</version>
<version>
0.0.
9
-SNAPSHOT
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
...
...
src/main/java/com/zhiwei/toutiao/parse/TouTiaoAccountParse.java
View file @
fdb8e380
...
@@ -148,6 +148,7 @@ public class TouTiaoAccountParse {
...
@@ -148,6 +148,7 @@ public class TouTiaoAccountParse {
int
page
=
0
;
int
page
=
0
;
while
(
more
){
while
(
more
){
String
url
=
"http://is.snssdk.com/user/following/?offset="
+
page
*
50
+
"&device_id=35330393347&count=50&user_id="
+
userid
+
"&ts="
+
System
.
currentTimeMillis
()/
1000
;
String
url
=
"http://is.snssdk.com/user/following/?offset="
+
page
*
50
+
"&device_id=35330393347&count=50&user_id="
+
userid
+
"&ts="
+
System
.
currentTimeMillis
()/
1000
;
System
.
out
.
println
(
url
);
page
++;
page
++;
headerMap
=
Tools
.
getTouTiaoHeader
();
headerMap
=
Tools
.
getTouTiaoHeader
();
headerMap
.
put
(
"Host"
,
"is.snssdk.com"
);
headerMap
.
put
(
"Host"
,
"is.snssdk.com"
);
...
...
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