Explorar o código

Update xiaoiceapi.py

yanwii %!s(int64=8) %!d(string=hai) anos
pai
achega
5743efaa5c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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")