|
@@ -26,14 +26,14 @@ table=db['general_log']
|
|
|
|
|
|
driver=None
|
|
driver=None
|
|
headers = {
|
|
headers = {
|
|
- "Authorization": "Bearer " + "t35vhZtWNgvDNWHc3DJh0OKll3mcB9GvC8K2EAkBug2",
|
|
|
|
|
|
+ "Authorization": "Bearer " + "6SDULL1Ebklduc6TFxa97AFto5Sj21kyJ30CxiLiSoi",
|
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def send_msg(kw):
|
|
def send_msg(kw):
|
|
- params = {"message": "處理關鍵字: "+kw}
|
|
|
|
|
|
+ params = {"message": "error: "+kw}
|
|
r = requests.post("https://notify-api.line.me/api/notify",headers=headers, params=params)
|
|
r = requests.post("https://notify-api.line.me/api/notify",headers=headers, params=params)
|
|
|
|
|
|
|
|
|
|
@@ -107,9 +107,13 @@ def run_once(q):
|
|
class JParams(object):
|
|
class JParams(object):
|
|
|
|
|
|
def get(self, kw,domain,address,epath):
|
|
def get(self, kw,domain,address,epath):
|
|
- print(kw)
|
|
|
|
- print(domain)
|
|
|
|
- run_once( (kw,domain,address,epath) )
|
|
|
|
|
|
+ try:
|
|
|
|
+ print(kw)
|
|
|
|
+ print(domain)
|
|
|
|
+ run_once( (kw,domain,address,epath) )
|
|
|
|
+ except:
|
|
|
|
+ traceback.print_exc()
|
|
|
|
+ send_msg('SEO docker exception... stop')
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|