human
What is a code to 2 given the following:
2. Modificar nossa classe para utilizar o método on_data
Ver slides 36 até 40."
Please write code following the instructions in jupyter notebook style.
assistant
#Here is code to 2.

class DadosPublicosTwitter(tweepy.StreamListener):
    def on_data(self, dados):
        print(dados)
        return False

dados_twitter = DadosPublicosTwitter()
fluxo = tweepy.Stream(autorizar, dados_twitter)

fluxo.filter(track=['Big Data'])