':param data: response from Twitter API'

def on_success(self, data):

    if self.do_continue:
        if (self.handler is not None):
            if ('text' in data):
                self.handler.counter += 1
                self.handler.handle(data)
                self.do_continue = self.handler.do_continue()
        else:
            raise ValueError('No    data    handler    has    been    registered.')
    else:
        self.disconnect()
        self.handler.on_finish()
