bonzanini / Book-SocialMediaMiningPython

Companion code for the book "Mastering Social Media Mining with Python"
548 stars 264 forks source link

twitter_get_user_timeline code example , encode problem with Araic tweets #4

Closed abdolrhman closed 7 years ago

abdolrhman commented 7 years ago

hello sir @bonzanini , in all of your scripts , when i deal with arabic tweets i get it encoded, for example, twitter_get_user_timeline to get an arabin user tweets , all arab words , in any entity include ,text or user name , etc .. , encoded like this : \u0627\u0644\u0646\u0627\u0633 \u062f\u064a \u0639\u0627\u064a\u0634\u0647 \u0644\u064a\u0647 help me plz thank you in advance its by the way in the most of all the scripts .thanks for all your great work , am using python 3 by the way .

bonzanini commented 7 years ago

@Nasr-Z1 yes that's how the text is going to be displayed on file, but if you print it out you should see the Arabic characters being displayed correctly

abdolrhman commented 7 years ago

ok thank you very much @bonzanini :) , i accessed the data individually and the arabic showed up