Link to home
Start Free TrialLog in
Avatar of Wm Allen Smith
Wm Allen Smith

asked on

How to Live Plot Streaming Twitter Data Using Python

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
Avatar of Kyle Santos
Kyle Santos
Flag of United States of America image

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
Avatar of Wm Allen Smith
Wm Allen Smith

ASKER

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.
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
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.