Commit 3fb45c65 by 陈森彬

去掉mouser的token

parent f03616df
Showing with 3 additions and 3 deletions
...@@ -13,8 +13,8 @@ import lib ...@@ -13,8 +13,8 @@ import lib
import token_lib import token_lib
from log_manage import get_logger from log_manage import get_logger
# 去掉digikey的爬虫token # 去掉digikey,mouser的爬虫token
process_list = ['digikey'] process_list = ['digikey',"mouser"]
logger = get_logger('app') logger = get_logger('app')
......
...@@ -27,7 +27,7 @@ def dd_send_msg(msg, robot=tom): ...@@ -27,7 +27,7 @@ def dd_send_msg(msg, robot=tom):
m.update(str(cur_time).encode()) m.update(str(cur_time).encode())
d.update((m.hexdigest() + 'fh6y5t4rr351d2c3bryi').encode()) d.update((m.hexdigest() + 'fh6y5t4rr351d2c3bryi').encode())
data = {'data': "{\"content\": \"%s\"}" % (content), 'touser': "[\"15113123231\",\"18594239421\"]", 'keyword': 'monitoring-py', data = {'data': "{\"content\": \"%s\"}" % (content), 'touser': "[\"15113123231\",]", 'keyword': 'monitoring-py',
'fromuser': '', 'wechat_data': '', 'is_oversea': '', 'channel_type': '', 'is_ignore': '', 'ex_int': '', 'fromuser': '', 'wechat_data': '', 'is_oversea': '', 'channel_type': '', 'is_ignore': '', 'ex_int': '',
'ex_str': '', 'k2': d.hexdigest(), 'k1': str(cur_time)} 'ex_str': '', 'k2': d.hexdigest(), 'k1': str(cur_time)}
requests.post(msgapi_url, data=data) requests.post(msgapi_url, data=data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment