Browse Source

Update xiaoiceapi.py

yanwii 8 years ago
parent
commit
5743efaa5c
1 changed files with 1 additions and 0 deletions
  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")