comment scrape sleep

This commit is contained in:
Simon 2025-01-03 22:07:04 +07:00
parent c4b981fb7c
commit 1fa8ab65c9
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 4 additions and 0 deletions

View File

@ -6,9 +6,11 @@ Functionality:
"""
from datetime import datetime
from time import sleep
from appsettings.src.config import AppConfig
from common.src.es_connect import ElasticWrap
from common.src.helper import get_sleep
from common.src.ta_redis import RedisQueue
from download.src.yt_dlp_base import YtWrap
@ -219,6 +221,8 @@ class CommentList:
if comment.json_data:
comment.upload_comments()
sleep(get_sleep(self.config))
def notify(self, idx, total_videos):
"""send notification on task"""
message = [f"Add comments for new videos {idx}/{total_videos}"]