|
@@ -9,7 +9,7 @@ import requests
|
|
|
import schedule
|
|
|
from tqdm import tqdm
|
|
|
|
|
|
-from applications import PQMySQL, Functions, PQAPI, log
|
|
|
+from applications import longArticlesMySQL, Functions, PQAPI, log
|
|
|
from applications.decoratorApi import retryOnTimeout
|
|
|
|
|
|
|
|
@@ -51,7 +51,7 @@ class AutoGetOffVideos(object):
|
|
|
"""
|
|
|
自动下架视频
|
|
|
"""
|
|
|
- pqMysql = PQMySQL()
|
|
|
+ pqMysql = longArticlesMySQL()
|
|
|
pqAPI = PQAPI()
|
|
|
|
|
|
@classmethod
|
|
@@ -198,13 +198,13 @@ def checkJob():
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- schedule.every().day.at("09:30").do(Functions().job_with_thread, getOffJob)
|
|
|
+ schedule.every().day.at("09:40").do(Functions().job_with_thread, getOffJob)
|
|
|
|
|
|
- schedule.every().day.at("10:30").do(Functions().job_with_thread, checkJob)
|
|
|
+ schedule.every().day.at("10:40").do(Functions().job_with_thread, checkJob)
|
|
|
|
|
|
- schedule.every().day.at("14:30").do(Functions().job_with_thread, getOffJob)
|
|
|
+ schedule.every().day.at("14:40").do(Functions().job_with_thread, getOffJob)
|
|
|
|
|
|
- schedule.every().day.at("15:00").do(Functions().job_with_thread, checkJob)
|
|
|
+ schedule.every().day.at("15:10").do(Functions().job_with_thread, checkJob)
|
|
|
|
|
|
while True:
|
|
|
schedule.run_pending()
|