def resumePostData(self): self.weiboapi = weiboApi.weiboApi() my_folder = self.selectFromFolder(self.OUTPUT_PATH) fetchInfo = self.resumeFetchData(self.OUTPUT_PATH, my_folder) print fetchInfo self.weiboapi.mainLoop( fetchInfo[0], fetchInfo[1], self.OUTPUT_PATH + os.sep + my_folder, since_page=fetchInfo[2] )
def resumePostData(self): self.weiboapi = weiboApi.weiboApi() my_folder = self.selectFromFolder(self.OUTPUT_PATH) fetchInfo = self.resumeFetchData(self.OUTPUT_PATH, my_folder) print fetchInfo self.weiboapi.mainLoop(fetchInfo[0], fetchInfo[1], self.OUTPUT_PATH + os.sep + my_folder, since_page=fetchInfo[2])
def getPostData(self, command, uid, path, format): self.weiboapi = weiboApi.weiboApi() # self.weiboapi.read_tokens() self.weiboapi.mainLoop(command, uid, path, format)
def getToken(self): self.weiboapi = weiboApi.weiboApi() self.weiboapi.create_token() return