How to Live Plot Streaming Twitter Data Using Python

Wm Allen Smith
Wm Allen Smith used Ask the Experts™
on
I ran across some python code that allows continuous, live plotting of twitter stream data and sentiment rating. When the author of the code demonstrated it on Youtube, he was able to plot the twitter in a graph, and the graph updated  with each tweet. However, when I run the same code, I get one graph for each tweet and the plot points do not form a continuous line--instead the output consists of one graph, one plot point for each tweet. I would like to  get the graph to show the plotted point for all tweets in one chart in a continuous line.

BTW I am not the  only person who ran into this same problem with the code.  FYI I am currently running python 2.7,  in a Spyder 3.2.8 development environment on Mac.  I have attached the code (without access key information) and it has not been altered from the author's version. Any assistance would be greatly appreciated.

Thanks!
wasmithpfs
test31818.py
Screen-Shot-2018-03-18-at-9.28.21-PM.png
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Kyle SantosSoftware Test Analyst I at Dassault Systemes

Commented:
Hi,

I am following up on your question.  Do you still need help?

If you solved the problem on your own, would you please post the solution here in case others have the same problem?

Regards,

Kyle Santos
Customer Relations

Author

Commented:
Hi Kyle, thanks for your response. I have not resolved this and would appreciate any help that you can give me.

wasmithpfs
Do you still have the youtube link.
Perhaps there's one tiny detail, that might explain the difference.

Author

Commented:
Gelonida,

I apologize for the delay in getting back to you on this thread. Here is  a link to the YouTube video:
https://www.youtube.com/watch?v=l9AC98amjSA

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial