summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-08-29 12:09:14 +0800
committerGitHub <[email protected]>2020-08-29 12:09:14 +0800
commit0c7bc774e1af9e28c124d5b1a5bab7040e33dbc7 (patch)
treea00c3e0803295c3cc1a388518f8ed92bf707e122 /config.py
parent3416dc3d29ad6b8def93a700dcf3c93d632eceaf (diff)
parent9dbe983c0332c0b56805fb2ce15c8db238afeb11 (diff)
downloadATRI-0c7bc774e1af9e28c124d5b1a5bab7040e33dbc7.tar.gz
ATRI-0c7bc774e1af9e28c124d5b1a5bab7040e33dbc7.tar.bz2
ATRI-0c7bc774e1af9e28c124d5b1a5bab7040e33dbc7.zip
Merge pull request #11 from Yiwen-Chan/master
[Update] new func SauceNAO
Diffstat (limited to 'config.py')
-rw-r--r--config.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/config.py b/config.py
index 3136356..647abec 100644
--- a/config.py
+++ b/config.py
@@ -43,7 +43,10 @@ e = "" # secret
def BAIDU_SECRET():
return e
-
+# API url:https://saucenao.com/search.php
+f = "" # key
+def SAUCENAO_KEY():
+ return f
@@ -166,3 +169,15 @@ else:
pass
else:
os._exit(0)
+
+if SAUCENAO_KEY():
+ print("用于SAUCENAO的钥匙已到手!")
+else:
+ print("貌似没拿到SAUCENAO的钥匙呢...如需帮助,请查看安装手册")
+ print("...跳过!")
+ time.sleep(1)
+ wait = input("是否继续: Y/N\n")
+ if wait == "Y" or wait == 'y':
+ pass
+ else:
+ os._exit(0)