Selaa lähdekoodia

Update xiaoiceapi.py

yanwii 8 vuotta sitten
vanhempi
sitoutus
d9f36c5af0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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):