hello , am trying to retrieve and get Arabic tweets , the problem the tweets i get , are encoded some thing like this
\ud83c\uddf8\ud83c\udde6\ud83c\uddf0\ud83c\uddfc all arabic words , text or creator any , are encoded , how i get the arabic words it self , can i do something to solve the encoded problems , i want to retrieve arabic tweets gust like retrieve english tweets without any problem of encoded or Unicode .
so what can i do , and thanks in advance
#!/usr/bin/env python # -*- coding: UTF-8 -*- from __future__ import absolute_import, print_function from tweepy.streaming import StreamListener from tweepy import OAuthHandler from tweepy import Stream # Go to http://apps.twitter.com and create an app. # The consumer key and secret will be generated for you after consumer_key="xxx" consumer_secret="xxx" # After the step above, you will be redirected to your app's page. # Create an access token under the the "Your access token" section access_token="x-x" access_token_secret="xxx" class StdOutListener(StreamListener): """ A listener handles tweets that are received from the stream. This is a basic listener that just prints received tweets to stdout. """ def on_data(self, data): print(data) return True def on_error(self, status): print(status) if __name__ == '__main__': l = StdOutListener() auth = OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) stream = Stream(auth, l) stream.filter(track=[str("الحرب")])