Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
tas_token_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3fb45c65
authored
Jul 11, 2021
by
陈森彬
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
去掉mouser的token
parent
f03616df
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
token_server.py
utils/robots.py
token_server.py
View file @
3fb45c65
...
...
@@ -13,8 +13,8 @@ import lib
import
token_lib
from
log_manage
import
get_logger
# 去掉digikey的爬虫token
process_list
=
[
'digikey'
]
# 去掉digikey
,mouser
的爬虫token
process_list
=
[
'digikey'
,
"mouser"
]
logger
=
get_logger
(
'app'
)
...
...
utils/robots.py
View file @
3fb45c65
...
...
@@ -27,7 +27,7 @@ def dd_send_msg(msg, robot=tom):
m
.
update
(
str
(
cur_time
)
.
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'
:
''
,
'ex_str'
:
''
,
'k2'
:
d
.
hexdigest
(),
'k1'
:
str
(
cur_time
)}
requests
.
post
(
msgapi_url
,
data
=
data
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment