File size: 1,838 Bytes
43a06dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[
    {
        "name": "video (might have expired)",
        "url": "https://www.xiaohongshu.com/explore/67cc17a3000000000e00726a?xsec_token=CBSFRtbF57so920elY1kbIX4fE1nhrwlpGZs9m6pIFpwo=",
        "canFail": true,
        "params": {},
        "expected": {
            "code": 200,
            "status": "tunnel"
        }
    },
    {
        "name": "picker with multiple live photos (might have expired)",
        "url": "https://www.xiaohongshu.com/explore/67c691b4000000000d0159cc?xsec_token=CB8p1eyB5DiFkwlUpy1BTeVsI9oOve6ppNjuDzo8V8p5w=",
        "canFail": true,
        "params": {},
        "expected": {
            "code": 200,
            "status": "picker"
        }
    },
    {
        "name": "one photo (might have expired)",
        "url": "https://www.xiaohongshu.com/explore/676e132d000000000b016f68?xsec_token=ABRv6LKzizOFeSaf2HnnBkdBqniB5Ak1fI8tMAHzO31jA",
        "canFail": true,
        "params": {},
        "expected": {
            "code": 200,
            "status": "tunnel"
        }
    },
    {
        "name": "short link (might have expired)",
        "url": "https://xhslink.com/a/czn4z6c1tic4",
        "canFail": true,
        "params": {},
        "expected": {
            "code": 200,
            "status": "tunnel"
        }
    },
    {
        "name": "wrong note id",
        "url": "https://www.xiaohongshu.com/discovery/item/6789065911100000210035fc?source=webshare&xhsshare=pc_web&xsec_token=CBustnz_Twf1BSybpe5-D-BzUb-Bx28DPLb418TN9S9Kk&xsec_source=pc_share",
        "params": {},
        "expected": {
            "code": 400,
            "status": "error"
        }
    },
    {
        "name": "short link, wrong id",
        "url": "https://xhslink.com/a/aaaaaa",
        "params": {},
        "expected": {
            "code": 400,
            "status": "error"
        }
    }
]