Spaces:
Paused
Paused
update
Browse files- data/porter_tasks/porter_task_douyin_bless_bag_collect.json +2 -2
- data/porter_tasks/porter_task_huchenfeng_douyin_video_to_youtube.json +15 -15
- data/porter_tasks/porter_task_lvxiaotong_douyin_video_to_youtube.json +5 -5
- data/tasks/douyin_live_info_collect.json +0 -9
- toolbox/porter/tasks/douyin_bless_bag_collect_task.py +1 -1
- toolbox/youtube/video/video_manager.py +5 -2
- toolbox/youtube/youtube_client.py +6 -3
data/porter_tasks/porter_task_douyin_bless_bag_collect.json
CHANGED
|
@@ -29,9 +29,9 @@
|
|
| 29 |
"end": "18:00"
|
| 30 |
}
|
| 31 |
],
|
| 32 |
-
"random_break_duration_range": [0,
|
| 33 |
"random_watch_duration_range": [900, 14400],
|
| 34 |
-
"bless_bag_join_rate": 0
|
| 35 |
}
|
| 36 |
],
|
| 37 |
"check_interval": 10,
|
|
|
|
| 29 |
"end": "18:00"
|
| 30 |
}
|
| 31 |
],
|
| 32 |
+
"random_break_duration_range": [0, 10],
|
| 33 |
"random_watch_duration_range": [900, 14400],
|
| 34 |
+
"bless_bag_join_rate": 1.0
|
| 35 |
}
|
| 36 |
],
|
| 37 |
"check_interval": 10,
|
data/porter_tasks/porter_task_huchenfeng_douyin_video_to_youtube.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
"sec_user_id": "MS4wLjABAAAAUF9MWqqHq4Jn9Tm2o41EmCaBrsHliW-d69RgxgFkXGV068t_65TrdQQpBYeluYFS",
|
| 7 |
"check_interval": 900,
|
| 8 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 9 |
-
"min_date2": "2025-09-
|
| 10 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 11 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 12 |
},
|
|
@@ -17,7 +17,7 @@
|
|
| 17 |
"sec_user_id": "MS4wLjABAAAAUCFp0qhWE0NOJrwUpFUoQgGVQh_OHk0BZ0NS-2H8mFIj13s_qjQq7hWQUp0iWXUJ",
|
| 18 |
"check_interval": 900,
|
| 19 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 20 |
-
"min_date2": "2025-09-
|
| 21 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 22 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 23 |
},
|
|
@@ -28,7 +28,7 @@
|
|
| 28 |
"sec_user_id": "MS4wLjABAAAAWWD5_sSCfwjZTm_BLz_8wKjKpc9NVw_ic6vAkDZVmQo",
|
| 29 |
"check_interval": 900,
|
| 30 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 31 |
-
"min_date2": "2025-09-
|
| 32 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 33 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 34 |
},
|
|
@@ -39,7 +39,7 @@
|
|
| 39 |
"sec_user_id": "MS4wLjABAAAAIN6W5VX1Z_L5VyxIKLaD_4io_9RTfZYATUEC5bUVpTV8LOXOpoAu8qYz5x7l1hOr",
|
| 40 |
"check_interval": 900,
|
| 41 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 42 |
-
"min_date2": "2025-09-
|
| 43 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 44 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 45 |
},
|
|
@@ -50,7 +50,7 @@
|
|
| 50 |
"sec_user_id": "MS4wLjABAAAA7HzdrI4XS-UidS8jGXzj2OEMImA9-ytoza-c5am3KPnemZZCjQEDR-wO-b_fCHHF",
|
| 51 |
"check_interval": 900,
|
| 52 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 53 |
-
"min_date2": "2025-09-
|
| 54 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 55 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 56 |
},
|
|
@@ -61,7 +61,7 @@
|
|
| 61 |
"sec_user_id": "MS4wLjABAAAAlpL1gm43W_CMmuRN_H-65fOqPbWdjJ9zmhl6XvDO46ZtVdhh0tteFi9KJPO6duv5",
|
| 62 |
"check_interval": 900,
|
| 63 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 64 |
-
"min_date2": "2025-09-
|
| 65 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 66 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 67 |
},
|
|
@@ -72,7 +72,7 @@
|
|
| 72 |
"sec_user_id": "MS4wLjABAAAAJhk5TML_6ymeRrK3XLyDZ_fVt9i0hKFhkOY2UgVBllTpS9ZlJAQOjgky97IT0fsi",
|
| 73 |
"check_interval": 900,
|
| 74 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 75 |
-
"min_date2": "2025-09-
|
| 76 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 77 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 78 |
},
|
|
@@ -83,7 +83,7 @@
|
|
| 83 |
"sec_user_id": "MS4wLjABAAAACIxMxyONKx9eWATKKTl-hIp7KfN4poEfA8JplEZXwuglmU90rU-fLlvWZkh3pr0h",
|
| 84 |
"check_interval": 900,
|
| 85 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 86 |
-
"min_date2": "2025-09-
|
| 87 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 88 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 89 |
},
|
|
@@ -94,7 +94,7 @@
|
|
| 94 |
"sec_user_id": "MS4wLjABAAAAjst2o4WBiLRz-a67F3mp5Idl6LQPwfJdYOrXl94oQC6Rt6DQjJW22CQuUngOISGG",
|
| 95 |
"check_interval": 900,
|
| 96 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 97 |
-
"min_date2": "2025-09-
|
| 98 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 99 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 100 |
},
|
|
@@ -105,7 +105,7 @@
|
|
| 105 |
"sec_user_id": "MS4wLjABAAAAhEOVN9kzSbYn4zYDgdHe5Xh8fjFt-RKMAv0JAVjInUzx44BT0O96NC2mai89Yqav",
|
| 106 |
"check_interval": 900,
|
| 107 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 108 |
-
"min_date2": "2025-09-
|
| 109 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 110 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 111 |
},
|
|
@@ -116,7 +116,7 @@
|
|
| 116 |
"sec_user_id": "MS4wLjABAAAAUW4FjuM9oX0EMvvLqDFLlo-5hesa1nP8tF5pHgj1y4H18qz9FFw6UY3sQaUgStje",
|
| 117 |
"check_interval": 900,
|
| 118 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 119 |
-
"min_date2": "2025-09-
|
| 120 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 121 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 122 |
},
|
|
@@ -127,7 +127,7 @@
|
|
| 127 |
"sec_user_id": "MS4wLjABAAAArNOrS57yW8wHilduFjyx1hN6GVKC2yviYxbH4sSm2LUiPm5gvVwpotVkh7eYKbVY",
|
| 128 |
"check_interval": 900,
|
| 129 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 130 |
-
"min_date2": "2025-09-
|
| 131 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 132 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 133 |
},
|
|
@@ -138,7 +138,7 @@
|
|
| 138 |
"sec_user_id": "MS4wLjABAAAAldOs3obge33YU_ULYduDcxBYaCy6MEgg9HvsdAc3plzBgC22rHTf2hSri5NSX8Xa",
|
| 139 |
"check_interval": 900,
|
| 140 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 141 |
-
"min_date2": "2025-09-
|
| 142 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 143 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 144 |
},
|
|
@@ -149,7 +149,7 @@
|
|
| 149 |
"sec_user_id": "MS4wLjABAAAA31vzKVlMWrRKU7mURFRa7gAK1WgieDbAQwodh7EhQr40sXVjmI_MqXgea2NYx0Gj",
|
| 150 |
"check_interval": 900,
|
| 151 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 152 |
-
"min_date2": "2025-09-
|
| 153 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 154 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 155 |
},
|
|
@@ -164,6 +164,6 @@
|
|
| 164 |
"video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json",
|
| 165 |
"remove_after_upload": true,
|
| 166 |
"file_size_limit_in_mb": 60,
|
| 167 |
-
"min_date2": "2025-09-
|
| 168 |
}
|
| 169 |
]
|
|
|
|
| 6 |
"sec_user_id": "MS4wLjABAAAAUF9MWqqHq4Jn9Tm2o41EmCaBrsHliW-d69RgxgFkXGV068t_65TrdQQpBYeluYFS",
|
| 7 |
"check_interval": 900,
|
| 8 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 9 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 10 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 11 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 12 |
},
|
|
|
|
| 17 |
"sec_user_id": "MS4wLjABAAAAUCFp0qhWE0NOJrwUpFUoQgGVQh_OHk0BZ0NS-2H8mFIj13s_qjQq7hWQUp0iWXUJ",
|
| 18 |
"check_interval": 900,
|
| 19 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 20 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 21 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 22 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 23 |
},
|
|
|
|
| 28 |
"sec_user_id": "MS4wLjABAAAAWWD5_sSCfwjZTm_BLz_8wKjKpc9NVw_ic6vAkDZVmQo",
|
| 29 |
"check_interval": 900,
|
| 30 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 31 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 32 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 33 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 34 |
},
|
|
|
|
| 39 |
"sec_user_id": "MS4wLjABAAAAIN6W5VX1Z_L5VyxIKLaD_4io_9RTfZYATUEC5bUVpTV8LOXOpoAu8qYz5x7l1hOr",
|
| 40 |
"check_interval": 900,
|
| 41 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 42 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 43 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 44 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 45 |
},
|
|
|
|
| 50 |
"sec_user_id": "MS4wLjABAAAA7HzdrI4XS-UidS8jGXzj2OEMImA9-ytoza-c5am3KPnemZZCjQEDR-wO-b_fCHHF",
|
| 51 |
"check_interval": 900,
|
| 52 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 53 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 54 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 55 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 56 |
},
|
|
|
|
| 61 |
"sec_user_id": "MS4wLjABAAAAlpL1gm43W_CMmuRN_H-65fOqPbWdjJ9zmhl6XvDO46ZtVdhh0tteFi9KJPO6duv5",
|
| 62 |
"check_interval": 900,
|
| 63 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 64 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 65 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 66 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 67 |
},
|
|
|
|
| 72 |
"sec_user_id": "MS4wLjABAAAAJhk5TML_6ymeRrK3XLyDZ_fVt9i0hKFhkOY2UgVBllTpS9ZlJAQOjgky97IT0fsi",
|
| 73 |
"check_interval": 900,
|
| 74 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 75 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 76 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 77 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 78 |
},
|
|
|
|
| 83 |
"sec_user_id": "MS4wLjABAAAACIxMxyONKx9eWATKKTl-hIp7KfN4poEfA8JplEZXwuglmU90rU-fLlvWZkh3pr0h",
|
| 84 |
"check_interval": 900,
|
| 85 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 86 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 87 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 88 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 89 |
},
|
|
|
|
| 94 |
"sec_user_id": "MS4wLjABAAAAjst2o4WBiLRz-a67F3mp5Idl6LQPwfJdYOrXl94oQC6Rt6DQjJW22CQuUngOISGG",
|
| 95 |
"check_interval": 900,
|
| 96 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 97 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 98 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 99 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 100 |
},
|
|
|
|
| 105 |
"sec_user_id": "MS4wLjABAAAAhEOVN9kzSbYn4zYDgdHe5Xh8fjFt-RKMAv0JAVjInUzx44BT0O96NC2mai89Yqav",
|
| 106 |
"check_interval": 900,
|
| 107 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 108 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 109 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 110 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 111 |
},
|
|
|
|
| 116 |
"sec_user_id": "MS4wLjABAAAAUW4FjuM9oX0EMvvLqDFLlo-5hesa1nP8tF5pHgj1y4H18qz9FFw6UY3sQaUgStje",
|
| 117 |
"check_interval": 900,
|
| 118 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 119 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 120 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 121 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 122 |
},
|
|
|
|
| 127 |
"sec_user_id": "MS4wLjABAAAArNOrS57yW8wHilduFjyx1hN6GVKC2yviYxbH4sSm2LUiPm5gvVwpotVkh7eYKbVY",
|
| 128 |
"check_interval": 900,
|
| 129 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 130 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 131 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 132 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 133 |
},
|
|
|
|
| 138 |
"sec_user_id": "MS4wLjABAAAAldOs3obge33YU_ULYduDcxBYaCy6MEgg9HvsdAc3plzBgC22rHTf2hSri5NSX8Xa",
|
| 139 |
"check_interval": 900,
|
| 140 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 141 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 142 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 143 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 144 |
},
|
|
|
|
| 149 |
"sec_user_id": "MS4wLjABAAAA31vzKVlMWrRKU7mURFRa7gAK1WgieDbAQwodh7EhQr40sXVjmI_MqXgea2NYx0Gj",
|
| 150 |
"check_interval": 900,
|
| 151 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 152 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 153 |
"output_video_dir": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风",
|
| 154 |
"output_video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json"
|
| 155 |
},
|
|
|
|
| 164 |
"video_info_file": "data/tasks/huchenfeng_douyin_video_to_youtube/video/douyin/户晨风/file_info.json",
|
| 165 |
"remove_after_upload": true,
|
| 166 |
"file_size_limit_in_mb": 60,
|
| 167 |
+
"min_date2": "2025-09-27 00:00:00"
|
| 168 |
}
|
| 169 |
]
|
data/porter_tasks/porter_task_lvxiaotong_douyin_video_to_youtube.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
"sec_user_id": "MS4wLjABAAAAqejZxZKopDBDEzxcQp-_1b019FfM05C0NzjQNpc5ylU",
|
| 7 |
"check_interval": 900,
|
| 8 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 9 |
-
"min_date2": "2025-09-
|
| 10 |
"output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
|
| 11 |
"output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
|
| 12 |
},
|
|
@@ -17,7 +17,7 @@
|
|
| 17 |
"sec_user_id": "MS4wLjABAAAAenYfLf-t_uRZhgQmEFOLN1iY3l2FTo4ToyC6wGEQVAH3i763q4-QgtUEleMB8n-m",
|
| 18 |
"check_interval": 900,
|
| 19 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 20 |
-
"min_date2": "2025-09-
|
| 21 |
"output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
|
| 22 |
"output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
|
| 23 |
},
|
|
@@ -28,7 +28,7 @@
|
|
| 28 |
"sec_user_id": "MS4wLjABAAAAkwn_ZhJXBB5f4qNT4mn_uk5hOmaCFS503C3tSHiSzSQADUpFTPuPHx4ZVScKQ1Yl",
|
| 29 |
"check_interval": 900,
|
| 30 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 31 |
-
"min_date2": "2025-09-
|
| 32 |
"output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
|
| 33 |
"output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
|
| 34 |
},
|
|
@@ -39,7 +39,7 @@
|
|
| 39 |
"sec_user_id": "MS4wLjABAAAAnDI9XdGvKm9azWhg0qOviLt9xKTVT0E2fu7xOMDiMq_KJp2TdYPXvuhG8leGj-p6",
|
| 40 |
"check_interval": 900,
|
| 41 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 42 |
-
"min_date2": "2025-09-
|
| 43 |
"output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
|
| 44 |
"output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
|
| 45 |
},
|
|
@@ -53,6 +53,6 @@
|
|
| 53 |
"check_interval": 300,
|
| 54 |
"video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json",
|
| 55 |
"remove_after_upload": true,
|
| 56 |
-
"min_date2": "2025-09-
|
| 57 |
}
|
| 58 |
]
|
|
|
|
| 6 |
"sec_user_id": "MS4wLjABAAAAqejZxZKopDBDEzxcQp-_1b019FfM05C0NzjQNpc5ylU",
|
| 7 |
"check_interval": 900,
|
| 8 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 9 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 10 |
"output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
|
| 11 |
"output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
|
| 12 |
},
|
|
|
|
| 17 |
"sec_user_id": "MS4wLjABAAAAenYfLf-t_uRZhgQmEFOLN1iY3l2FTo4ToyC6wGEQVAH3i763q4-QgtUEleMB8n-m",
|
| 18 |
"check_interval": 900,
|
| 19 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 20 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 21 |
"output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
|
| 22 |
"output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
|
| 23 |
},
|
|
|
|
| 28 |
"sec_user_id": "MS4wLjABAAAAkwn_ZhJXBB5f4qNT4mn_uk5hOmaCFS503C3tSHiSzSQADUpFTPuPHx4ZVScKQ1Yl",
|
| 29 |
"check_interval": 900,
|
| 30 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 31 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 32 |
"output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
|
| 33 |
"output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
|
| 34 |
},
|
|
|
|
| 39 |
"sec_user_id": "MS4wLjABAAAAnDI9XdGvKm9azWhg0qOviLt9xKTVT0E2fu7xOMDiMq_KJp2TdYPXvuhG8leGj-p6",
|
| 40 |
"check_interval": 900,
|
| 41 |
"key_of_credentials": "douyin_wentao_credentials",
|
| 42 |
+
"min_date2": "2025-09-27 00:00:00",
|
| 43 |
"output_video_dir": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤",
|
| 44 |
"output_video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json"
|
| 45 |
},
|
|
|
|
| 53 |
"check_interval": 300,
|
| 54 |
"video_info_file": "data/tasks/lvxiaotong_douyin_video_to_youtube/video/douyin/吕晓彤/file_info.json",
|
| 55 |
"remove_after_upload": true,
|
| 56 |
+
"min_date2": "2025-09-27 00:00:00"
|
| 57 |
}
|
| 58 |
]
|
data/tasks/douyin_live_info_collect.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"572033528289": {
|
| 3 |
-
"nickname": "🪭嘉玉(卷卷)书法",
|
| 4 |
-
"sec_uid": "MS4wLjABAAAAb0mqEsXmBehDdg2Q9mMA2T6YEWPGbEtYofSzX_bDnz4",
|
| 5 |
-
"room_id": "572033528289",
|
| 6 |
-
"status": 2,
|
| 7 |
-
"title": "🪭嘉玉写字✍️…正在直播"
|
| 8 |
-
}
|
| 9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
toolbox/porter/tasks/douyin_bless_bag_collect_task.py
CHANGED
|
@@ -142,7 +142,6 @@ class DouyinBlessBagCollectTask(BaseTask):
|
|
| 142 |
random_watch_duration_range = time_period["random_watch_duration_range"]
|
| 143 |
bless_bag_join_rate = time_period["bless_bag_join_rate"]
|
| 144 |
|
| 145 |
-
await self.random_sleep_by_range(random_break_duration_range)
|
| 146 |
watch_duration = random.randint(*random_watch_duration_range)
|
| 147 |
logger.info(f"{self.flag}随机观看直播时长设置: {watch_duration//60}分钟{watch_duration%60}秒.")
|
| 148 |
|
|
@@ -167,6 +166,7 @@ class DouyinBlessBagCollectTask(BaseTask):
|
|
| 167 |
await asyncio.to_thread(
|
| 168 |
douyin_live_task.run,
|
| 169 |
)
|
|
|
|
| 170 |
else:
|
| 171 |
logger.info(f"{self.flag}未命中时间范围.")
|
| 172 |
|
|
|
|
| 142 |
random_watch_duration_range = time_period["random_watch_duration_range"]
|
| 143 |
bless_bag_join_rate = time_period["bless_bag_join_rate"]
|
| 144 |
|
|
|
|
| 145 |
watch_duration = random.randint(*random_watch_duration_range)
|
| 146 |
logger.info(f"{self.flag}随机观看直播时长设置: {watch_duration//60}分钟{watch_duration%60}秒.")
|
| 147 |
|
|
|
|
| 166 |
await asyncio.to_thread(
|
| 167 |
douyin_live_task.run,
|
| 168 |
)
|
| 169 |
+
await self.random_sleep_by_range(random_break_duration_range)
|
| 170 |
else:
|
| 171 |
logger.info(f"{self.flag}未命中时间范围.")
|
| 172 |
|
toolbox/youtube/video/video_manager.py
CHANGED
|
@@ -187,13 +187,16 @@ def get_args():
|
|
| 187 |
parser = argparse.ArgumentParser()
|
| 188 |
parser.add_argument(
|
| 189 |
"--client_secrets_file",
|
|
|
|
|
|
|
|
|
|
| 190 |
default=(project_path / "dotenv/client_secret_2_407880303838-ke7g6d12sa3msca9prjl8dr12njen9r6.apps.googleusercontent.com.json").as_posix(),
|
| 191 |
type=str
|
| 192 |
)
|
| 193 |
parser.add_argument(
|
| 194 |
"--authorized_user_file",
|
| 195 |
-
# default=(project_path / "dotenv/
|
| 196 |
-
default=(project_path / "dotenv/
|
| 197 |
type=str
|
| 198 |
)
|
| 199 |
parser.add_argument(
|
|
|
|
| 187 |
parser = argparse.ArgumentParser()
|
| 188 |
parser.add_argument(
|
| 189 |
"--client_secrets_file",
|
| 190 |
+
# youtube-manager-20250703
|
| 191 |
+
# default=(project_path / "dotenv/client_secret_2_407880303838-ke7g6d12sa3msca9prjl8dr12njen9r6.apps.googleusercontent.com.json").as_posix(),
|
| 192 |
+
# youtube-huchenfeng
|
| 193 |
default=(project_path / "dotenv/client_secret_2_407880303838-ke7g6d12sa3msca9prjl8dr12njen9r6.apps.googleusercontent.com.json").as_posix(),
|
| 194 |
type=str
|
| 195 |
)
|
| 196 |
parser.add_argument(
|
| 197 |
"--authorized_user_file",
|
| 198 |
+
# default=(project_path / "dotenv/chenjiesen_authorized_user_file.json").as_posix(),
|
| 199 |
+
default=(project_path / "dotenv/huchenfeng_authorized_user_file.json").as_posix(),
|
| 200 |
type=str
|
| 201 |
)
|
| 202 |
parser.add_argument(
|
toolbox/youtube/youtube_client.py
CHANGED
|
@@ -114,12 +114,15 @@ def get_args():
|
|
| 114 |
parser = argparse.ArgumentParser()
|
| 115 |
parser.add_argument(
|
| 116 |
"--client_secrets_file",
|
| 117 |
-
|
|
|
|
|
|
|
|
|
|
| 118 |
type=str
|
| 119 |
)
|
| 120 |
parser.add_argument(
|
| 121 |
"--authorized_user_file",
|
| 122 |
-
# default=(project_path / "dotenv/
|
| 123 |
default=(project_path / "dotenv/huchenfeng_authorized_user_file.json").as_posix(),
|
| 124 |
type=str
|
| 125 |
)
|
|
@@ -142,7 +145,7 @@ def main():
|
|
| 142 |
)
|
| 143 |
|
| 144 |
credentials = client.get_credentials()
|
| 145 |
-
print(
|
| 146 |
return
|
| 147 |
|
| 148 |
|
|
|
|
| 114 |
parser = argparse.ArgumentParser()
|
| 115 |
parser.add_argument(
|
| 116 |
"--client_secrets_file",
|
| 117 |
+
# youtube-manager-20250703
|
| 118 |
+
# default=(project_path / "dotenv/client_secret_2_407880303838-ke7g6d12sa3msca9prjl8dr12njen9r6.apps.googleusercontent.com.json").as_posix(),
|
| 119 |
+
# youtube-huchenfeng
|
| 120 |
+
default=(project_path / "dotenv/client_secret_417189403909-dafvbee9bkl8u98nttt127j46b3igjkl.apps.googleusercontent.com.json").as_posix(),
|
| 121 |
type=str
|
| 122 |
)
|
| 123 |
parser.add_argument(
|
| 124 |
"--authorized_user_file",
|
| 125 |
+
# default=(project_path / "dotenv/chenjiesen_authorized_user_file.json").as_posix(),
|
| 126 |
default=(project_path / "dotenv/huchenfeng_authorized_user_file.json").as_posix(),
|
| 127 |
type=str
|
| 128 |
)
|
|
|
|
| 145 |
)
|
| 146 |
|
| 147 |
credentials = client.get_credentials()
|
| 148 |
+
print(credentials.to_json())
|
| 149 |
return
|
| 150 |
|
| 151 |
|