python - What is the difference between on_data and on_status in the tweepy library? -


i started using tweepy library connect streaming api of twitter. encountered both on_status() , on_data() methods of streamlistener class. difference? total noob here!

on_data() handles:

  • replies statuses
  • deletes
  • events
  • direct messages
  • friends
  • limits, disconnects , warnings

whereas, on_status() handles statuses.

source: https://github.com/tweepy/tweepy/blob/78d2883a922fa5232e8cdfab0c272c24b8ce37c4/tweepy/streaming.py


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -