yanwii пре 8 година
родитељ
комит
d9f36c5af0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      xiaoiceapi.py

+ 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):