refactor: VideoCrawlerConfigs struct

This commit is contained in:
lilong.129
2023-04-30 01:17:40 +08:00
parent 6bc5e11e2d
commit bb52abf579
5 changed files with 65 additions and 30 deletions
+8 -3
View File
@@ -9,9 +9,14 @@ func TestVideoCrawler(t *testing.T) {
configs := &VideoCrawlerConfigs{
AppPackageName: "com.ss.android.ugc.aweme",
TargetCount: VideoStat{
FeedCount: 5,
LiveCount: 3,
Feed: FeedConfig{
TargetCount: 5,
SleepRandom: []interface{}{0, 5, 0.7, 5, 10, 0.3},
},
Live: LiveConfig{
TargetCount: 3,
SleepRandom: []interface{}{15, 20},
},
}
err := driverExt.VideoCrawler(configs)