Prechádzať zdrojové kódy

Update xiaoiceapi.py

yanwii 8 rokov pred
rodič
commit
5743efaa5c
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      xiaoiceapi.py

+ 1 - 0
xiaoiceapi.py

@@ -72,6 +72,7 @@ class xiaoiceApi():
         '''
         times = 1
         while times:
+            times += 1
             response = requests.get("http://weibo.com/aj/message/getbyid?ajwvr=6&uid=5175429989&count=1&_t=0" , headers=self.headers)
             self.savePage(response.text, "./tmp/response.txt")
             soup = BeautifulSoup(response.json()['data']['html'], "lxml")