If you are only interested in tweets, use on_status() . This will give you what you need without additional information, and it will not interfere with your restriction.
If you need more information, use on_data() . - This rarely happens if you do not conduct a heavy analysis.
source share