original_docstring: Whatever we put in this method defines what is done with
          every single tweet as it is intercepted in real-time
docstring: Whatever we put in this method defines what is done with
  every single tweet as it is intercepted in real-time
docstring_tokens: Whatever we put in this method defines what is done with every single tweet as it is intercepted in real - time
code: def on_status(self, status):
          """Whatever we put in this method defines what is done with
          every single tweet as it is intercepted in real-time"""
          
          # increase the counter
          self.counter += 1        
  
          tweet = {
              'text': status.text,
              'username': status.user.screen_name,
              'followers_count': status.user.followers_count
          }
  
          print(f'New tweet arrived: {tweet["text"]}')
  
          # check if we have enough tweets collected
          if self.max_tweets == self.counter:
              # reset the counter
              self.counter=0
              # return False to stop the listener
              return False
code_tokens: def on_status ( self , status ) : self . counter += 1 tweet = { 'text' : status . text , 'username' : status . user . screen_name , 'followers_count' : status . user . followers_count } print ( f'New tweet arrived: {tweet["text"]}' ) if self . max_tweets == self . counter : self . counter = 0 return False
short_docstring: Whatever we put in this method defines what is done with
  every single tweet as it is intercepted in real-time
short_docstring_tokens: Whatever we put in this method defines what is done with every single tweet as it is intercepted in real - time
comment: """Whatever we put in this method defines what is done with
          every single tweet as it is intercepted in real-time"""$SEP$# increase the counter$SEP$# check if we have enough tweets collected$SEP$# reset the counter$SEP$# return False to stop the listener