def fetch_items(self, category, **kwargs):
since_id = kwargs['<STR_LIT>']<EOL>max_id = kwargs['<STR_LIT>']<EOL>geocode = kwargs['<STR_LIT>']<EOL>lang = kwargs['<STR_LIT>']<EOL>entities = kwargs['<STR_LIT>']<EOL>tweets_type = kwargs['<STR_LIT>']<EOL>logger.info("<STR_LIT>",<EOL>self.query, str(since_id),<EOL>str(max_id) if max_id else '<STR_LIT>')<EOL>tweets_ids = []<EOL>min_date = None<EOL>max_date = None<EOL>group_tweets = self.client.tweets(self.query, since_id=since_id, max_id=max_id, geocode=geocode,<EOL>lang=lang, include_entities=entities, result_type=tweets_type)<EOL>for tweets in group_tweets:<EOL><INDENT>for i in range(len(tweets)):<EOL><INDENT>tweet = tweets[i]<EOL>tweets_ids.append(tweet['<STR_LIT:id>'])<EOL>if tweets[-<NUM_LIT:1>] == tweet:<EOL><INDENT>min_date = str_to_datetime(tweets[-<NUM_LIT:1>]['<STR_LIT>'])<EOL><DEDENT>if tweets[<NUM_LIT:0>] == tweet and not max_date:<EOL><INDENT>max_date = str_to_datetime(tweets[<NUM_LIT:0>]['<STR_LIT>'])<EOL><DEDENT>yield tweet<EOL><DEDENT><DEDENT>logger.info("<STR_LIT>",<EOL>len(tweets_ids), len(list(set(tweets_ids))), min_date, max_date)<EOL>
Fetch the tweets

        :param category: the category of items to fetch
        :param kwargs: backend arguments

        :returns: a generator of items