admin
2021-04-07 35a29882f356542dd9c431714c64d277eb7cad40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.hxh.spring.test.video;
 
import com.yeshi.buwan.util.rank.IqiyiRankUtil;
import com.yeshi.buwan.util.rank.MaoYanUtil;
import org.junit.Test;
import org.yeshi.utils.StringUtil;
 
import java.io.IOException;
import java.util.List;
 
public class RankTest {
 
    @Test
    public void getMaoYanRank() {
        try {
            List<String> list = MaoYanUtil.getTVRank(30);
            System.out.println(StringUtil.concat(list, ","));
        } catch (Exception e) {
            e.printStackTrace();
        }
 
        try {
            List<String> list = MaoYanUtil.getShowRank(30);
            System.out.println(StringUtil.concat(list, ","));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
 
 
    @Test
    public void getIqiyiRank() {
        try {
            IqiyiRankUtil.getRank(10);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
 
}