Эх сурвалжийг харах

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

yanwii 8 жил өмнө
parent
commit
7daa94ddab
2 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 1 1
      README.md
  2. 1 1
      xiaoiceapi.py

+ 1 - 1
README.md

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

+ 1 - 1
xiaoiceapi.py

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