0

I am doing a research project which wants to work out Hong Kong people's attitudes toward the public transportation system. I have collected millions of tweets using Twitter API. Since my research target is local Hong Kong people, tweets posted from official accounts or tweets contain advertisements may be useless.

Hence, could anyone give some hint about how to filter out the tweets posted from the official account? I know my explanation might be a little bit abstract. Any tips would be appreciated! Thank you!

Bright Chang
  • 191
  • 2
  • 14
  • 1
    If you mean "verified" accounts with the blue check logo, in the tweet JSON, you have `json.user.verified` set to true for verified users. – JeffProd Dec 18 '18 at 10:47
  • @JeffProd Oh, thank you for your prompt reply! I will check this in my dataset. – Bright Chang Dec 18 '18 at 11:27

1 Answers1

1

well, you can request the user object get information about a user and test if the verified key is set to true. here is the informations you get returned informations in JSON, you can see that the key verified is among the result.

bayethierno
  • 159
  • 1
  • 12