VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
Tweet Visualization and Sentiment Analysis in Python - Full Tutorial

Tweet Visualization and Sentiment Analysis in Python - Full Tutorial

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
In this Python tutorial, the Tweepy module is used to stream live tweets directly from Twitter in real-time. The tweets are visualized and then the TextBlob module is used to do sentiment analysis on the tweets. -Code: https://github.com/vprusso/youtube_tutorials/tree/master/twitter_python -- Contents -- -- (00:06) Streaming live tweets -- (23:17) Cursor and pagination -- (43:28) Analyzing tweet data -- (1:03:16) Visualizing tweet data -- (1:20:18) Sentiment analysis -Tweepy Website:http://www.tweepy.org/ -Cursor Docs: http://docs.tweepy.org/en/v3.5.0/cursor_tutorial.html -API Reference: http://docs.tweepy.org/en/v3.5.0/api.html Tutorial from Vincent Russo of Lucid Programming. Check out his YouTube channel: http://bit.ly/lucidcode -Vincent on
Date: 2022-03-14

Comments and reviews: 10


bro,your work is nice. but i want to ask that how to use any trained model in place of textblob? i am cleaning text using textblob but i dont want textblob polarity feature. i want to check polarity by my own trained mode like naive bayes,random forest etc,but all trained model are giving negative value for all sentences during streaming.but when i separately predicting same sentences alone ,it is giving positive,negative ,all correct for sentences. please help me how to use trained model in place of text blob for getting correct prediction.
reply

Great video man. I've got a question: how do you add the tweet coordinates or place to the df. I'm referring to the stuff you're describing at the 1:00:00 mark. When you look at what everything in the tweets is called using print(dir(tweets[0])) it says they're called 'coordinates' and 'place'. But if I write this: df['coordinates'] = np.array([tweet.coordinates for tweet in tweets]) and the same for place, they come up empty. Any suggestions? Thanks a lot in advance. i'm gonna keep watching your videos
reply

I am on the visualizing tweet data time stamp 108:00 and while you are able to get the number of likes from the most liked tweet I was wondering how to get the tweet itself with the most likes. I tried sorting the array and printing the first element in the list, but it keeps giving me a -object is not subscriptable-
- error, do you have any idea how to do this?

reply

Hey i wanted to make a sentiment analysis and publish it to github. But is it really safe to publish twitter api credentials into version control? Please tell me.
P.s. I have used the same method as you did which is making a seperate python file and import it in our main code. But is it still safe?

reply

hi,
i am trying to stream live tweets by following the steps axactly as you did but im getting the following error:
TypeError: __init__() missing 4 required positional arguments: 'consumer_key', 'consumer_secret', 'access_token', and 'access_token_secret'
please help.

reply

Hey, I need help. Actually he uploaded this code on github and there are lots of files and i dont know which one to use so that i can show a project for social media sentiment analysis. If anyone can help, please help urgently
reply

Hi, where the text data get the store of tweets and hash tag list also on my computer??? Please reply.
I run you code and it run but I want text file of tweets and hash tag list

reply

Hi, where the text data get the store of tweets and hash tag list also on my computer??? Please reply.
I run you code and it run but I want text file of tweets and hash tag list

reply

Thank you for this code,i got an error ModuleNotFoundError: No module named 'twitter_credentials'-
when trying to run it on anaconda please help me on that?
thank again

reply

Hi ! Amazing tutorial. I have a question though : How would you do if you wanted to gather sentiments related to a hashtag rather than a user like in the video ?
reply
Add a review, comment






Other channel videos