Appreciate your code so much, thank you. Worked like a charm after I updated some of the code for Python version 3 (deleted "b" in 'wb' and deleted "raw_" from "raw_input".
My issue is that I need historical data which requires premium API from Twitter. I purchased it but am totally lost in adding the relevant code, as there seems to be quite a bit more needed now -- could use your help!