You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
danmuparser/src/test/java/TestBuild.java

16 lines
595 B

import com.alibaba.fastjson.JSONObject;
import org.dom4j.Element;
import org.junit.Test;
import java.io.IOException;
public class TestBuild {
@Test
public void test() throws IOException {
BuildDanmu<Element> b1=new BuildDanmu<>(new SohuParser());
b1.build("https://tv.sohu.com/v/MjAxNzA2MjIvbjYwMDAxNzkzNC5zaHRtbA==.html?fid=847&pvid=4d4db6d26aa0a4ec","D://BuildDanmu.xml");
BuildDanmu<JSONObject> buildDanmu=new BuildDanmu<>(new AniGamerParser());
buildDanmu.build("https://ani.gamer.com.tw/animeVideo.php?sn=10852","D://AniGamerParser.xml");
}
}