Skip to content

Commit a85972e

Browse files
author
gaopu_dxm
committed
根据斗鱼开放协议更改代码
1 parent 0301b8a commit a85972e

File tree

9 files changed

+735
-893
lines changed

9 files changed

+735
-893
lines changed

CrawlDouyuDanmu/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
target
1+
target
2+
.idea

CrawlDouyuDanmu/.idea/compiler.xml

Lines changed: 1 addition & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CrawlDouyuDanmu/.idea/misc.xml

Lines changed: 1 addition & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CrawlDouyuDanmu/.idea/workspace.xml

Lines changed: 428 additions & 428 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CrawlDouyuDanmu/CrawlDouyuDanmu.iml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3-
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false">
3+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5">
44
<output url="file://$MODULE_DIR$/target/classes" />
55
<output-test url="file://$MODULE_DIR$/target/test-classes" />
66
<content url="file://$MODULE_DIR$">
@@ -11,6 +11,5 @@
1111
</content>
1212
<orderEntry type="inheritedJdk" />
1313
<orderEntry type="sourceFolder" forTests="false" />
14-
<orderEntry type="library" name="Maven: org.jsoup:jsoup:1.8.3" level="project" />
1514
</component>
1615
</module>

CrawlDouyuDanmu/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,4 @@
88
<artifactId>DouyuDanmu</artifactId>
99
<version>1.0-SNAPSHOT</version>
1010

11-
<dependencies>
12-
<dependency>
13-
<groupId>org.jsoup</groupId>
14-
<artifactId>jsoup</artifactId>
15-
<version>1.8.3</version>
16-
</dependency>
17-
</dependencies>
18-
1911
</project>

CrawlDouyuDanmu/src/main/java/DouyuBarrageHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import java.nio.ByteBuffer;
55
import java.nio.ByteOrder;
66

7-
public class DouyuBarrageServerHandler {
7+
public class DouyuBarrageHandler {
88
private static String host = "openbarrage.douyutv.com";
99

1010
private static int port = 8601;
@@ -13,7 +13,7 @@ public class DouyuBarrageServerHandler {
1313

1414
private String roomId;
1515

16-
public DouyuBarrageServerHandler(String roomId) {
16+
public DouyuBarrageHandler(String roomId) {
1717
this.roomId = roomId;
1818

1919
try {

CrawlDouyuDanmu/src/main/java/Start.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
public class Start {
44
public static void main(String[] args) throws IOException, InterruptedException {
5-
DouyuBarrageServerHandler server = new DouyuBarrageServerHandler("288016");
5+
DouyuBarrageHandler server = new DouyuBarrageHandler("288016");
66

77
while (true) {
88
System.out.println(server.read());

0 commit comments

Comments
 (0)