Browse Source

更新账号均值代码上线

罗俊辉 7 months ago
parent
commit
326dab33d9
2 changed files with 7 additions and 5 deletions
  1. 3 2
      applications/wxSpiderApi.py
  2. 4 3
      updatePublishedMsgDaily.py

+ 3 - 2
applications/wxSpiderApi.py

@@ -11,8 +11,8 @@ class WeixinSpider(object):
     """
     Update account articles
     """
-    # ip = "8.217.190.241"
-    ip = "47.98.154.124"
+    ip = "8.217.190.241"
+    # ip = "47.98.154.124"
     port = "8888"
 
     @classmethod
@@ -69,6 +69,7 @@ class WeixinSpider(object):
             'Content-Type': 'application/json'
         }
         response = requests.post(url, headers=headers, data=json.dumps(payload), timeout=120)
+        print("response", response.text)
         return response.json()
 
     @classmethod

+ 4 - 3
updatePublishedMsgDaily.py

@@ -342,9 +342,10 @@ def job_with_thread(job_func):
 
 if __name__ == '__main__':
 
-    schedule.every().day.at("20:50").do(job_with_thread, updateJob)
-
-    schedule.every().day.at("21:30").do(job_with_thread, checkJob)
+    # updateJob()
+    # schedule.every().day.at("20:50").do(job_with_thread, updateJob)
+    #
+    schedule.every().day.at("22:30").do(job_with_thread, checkJob)
 
     while True:
         schedule.run_pending()