@@ -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()
@@ -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()