Skip to content

Commit 1130ea6

Browse files
committed
fix the coding problem
use utf-8 to encode the plugins
1 parent 6ae9842 commit 1130ea6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sreg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def check(plugin, passport, passport_type):
2727
return
2828
app_name = plugin['information']['name']
2929
category = plugin["information"]["category"]
30-
website = plugin["information"]["website"]
30+
website = plugin["information"]["website"].encode("utf-8")
3131
judge_yes_keyword = plugin['status']['judge_yes_keyword'].encode("utf-8")
3232
judge_no_keyword = plugin['status']['judge_no_keyword'].encode("utf-8")
3333
headers = {
@@ -115,15 +115,15 @@ def main():
115115
print '\nInput "-h" view the help information.'
116116
sys.exit(0)
117117
if parser_argument.cellphone:
118-
print inRed('\n[+] Phone Checking: %s\n') % parser_argument.cellphone
118+
print inYellow('\n[+] Phone Checking: %s\n') % parser_argument.cellphone
119119
file_name = "cellphone_" + str(parser_argument.cellphone)
120120
output_init(file_name, "Phone: ", str(parser_argument.cellphone))
121121
if parser_argument.user:
122-
print inRed('\n[+] Username Checking: %s\n') % parser_argument.user
122+
print inYellow('\n[+] Username Checking: %s\n') % parser_argument.user
123123
file_name = "user_" + str(parser_argument.user)
124124
output_init(file_name, "UserName: ", str(parser_argument.user))
125125
if parser_argument.email:
126-
print inRed('\n[+] Email Checking: %s\n') % parser_argument.email
126+
print inYellow('\n[+] Email Checking: %s\n') % parser_argument.email
127127
file_name = "email_" + str(parser_argument.email)
128128
output_init(file_name, "E-mail: ", str(parser_argument.email))
129129
jobs = []

0 commit comments

Comments
 (0)