def search(self, **kwargs):
        """Passes kwargs to search.tweets.get of the AppClient.
        For kwargs requirements, see docs for birdy AppClient."""
        if self.first_request:
            self.fetch_rate_limit()
            self.first_request = False
        if 0 <= self.rate_limit_remaining:
            logging.info('Reached Twitter rate limit.')
            self.wait_for_reset()
        try:


            # response = self.client.api.search.tweets.get(**kwargs)
            response = self.client.api.statuses.user_timeline.get(**kwargs)


            logging.debug('Received twitter search response: %s' % str(response))
            self.extract_rate_limit(response)
            return response
        except TwitterRateLimitError, e:
            logging.warning('Twitter rate limit exceeded.')
            # headers = e.headers ## this seems to always be None
            # Birdy does not seem to be attaching headers to the exception
            # object, so we need to get the wait time from Twitter.
            self.fetch_rate_limit()
            self.wait_for_reset()
            return self.search(**kwargs)
        except TwitterClientError, e:
            # requests library is not propagating connection pool session
            # disconnects. Hence the need to look at the string.
            if str(e).startswith('HTTPSConnectionPool'):
                logging.debug('Connection pool disconnect. Reconnecting.')
                self.reset_client()
                return self.search(**kwargs)
            else:
                raise e
dataset/ETHPy150Open Impactstory/total-impact-core/totalimpact/providers/twitter_paging.py/TwitterPager.search/swapped operands of `<=`