Browse Source

Merge branch 'master' of https://github.com/yanwii/msxiaoiceapi

yanwii 8 years ago
parent
commit
7daa94ddab
2 changed files with 2 additions and 2 deletions
  1. 1 1
      README.md
  2. 1 1
      xiaoiceapi.py

+ 1 - 1
README.md

@@ -26,7 +26,7 @@
 
     return:
     {  
-    "status": "sucess",  
+    "status": "succeed",  
     "text": "你都知道你还问[不屑脸],哈哈党"  
     }  
 

+ 1 - 1
xiaoiceapi.py

@@ -78,7 +78,7 @@ class xiaoiceApi():
             text = soup.find("p", class_='page').text
             if text != input_strs or times > 20:
                 break
-            time.sleep(1)
+            time.sleep(0.3)
         return text
             
     def savePage(self, text, file):