human
Can you provide a code to 2 given the following:
2 .Criar uma classe herdando os atributos da classe StreamListener"
Please write code following the instructions in jupyter notebook style.
assistant
#Here is code to 2 .

class DadosPublicosTwitter(tweepy.StreamListener):
    def on_status(self, dados):
        print("---> ", dados.text)