You just help people in making their minor project free and fully complete in a day. Hat's off. 👏👏👏👏💯
@LucidProgramming6 жыл бұрын
Thank you Shikar. If you found the content helpful, you might find the other content on my channel useful as well. If so, please consider subscribing, and thanks for your support!
@akshayrajiyer5 жыл бұрын
Thanks for the informative video! Minor change to Part 1, the fetched_tweets_filename should be passed as a parameter when creating the StdOutListener object inside TwitterStreamer.stream_tweets(). This is corrected in Part 2 but wanted to point it out in case folks found it confusing!
@Claire-ci4vr4 жыл бұрын
I'm currently struggling with this, I keep getting "TypeError: __init__() missing 1 required positional argument: 'fetched_tweets_filename'". Any advice? Confused about how to pass it as a param. Thanks so much in advance!
@Sqedabantwana7 ай бұрын
@@Claire-ci4vrdid you manage to fix it?
@itissrinivasan4 жыл бұрын
That was quite deep, covered the basics very well and has helped me learn from scratch ! Thank you so much for the depth and for your patience!
@DaDavid156 жыл бұрын
Subtly hilarious "shame on you" omage to the Great Hitchens around 34:00 . Thank you
@liamfmackle5 жыл бұрын
Brilliant tutorial. Learning a lot about OOP as well as twitter sentiment analysis, thank you!
@paulkerrigan98575 жыл бұрын
This ain't the way to do OOP, chief. Don't waste time making pointless classes to wrap other classes. Just use a function like a sane person. I've seen too many beginner programmers get into the industry and start trying to force every single thing into multiple classes, bloating code that once required a dozen lines into over a hundred, all to worship OOP. Don't say "it saves time because I'll reuse this class later!" You will never reuse it. That is a lie.
@nowyouknow22494 жыл бұрын
@@paulkerrigan9857 I totally get. It's so annoying
@zainabelmadhoni68564 жыл бұрын
You are a lifesaver. I have a “Social network analysis “ project . And your code matches perfectly what I am supposed to do. Thank you very much 🙏🙏🙏
@ranaatif9434 жыл бұрын
plz cn u shr me code o3204022823 whts up no
@zainabelmadhoni68564 жыл бұрын
@@kellyokios8659go to twitter developer and you write a request. it takes about a day or two then you get access
@zainabelmadhoni68564 жыл бұрын
@@ranaatif943 there is a link in the description for a github project. all the code is there
@ranaatif9434 жыл бұрын
zainab elmadhoni where is link plz share rafrance 03204022823
@ranaatif9434 жыл бұрын
15 is last Date university for submitd project 😭😭
@jayantakumarroy5435 жыл бұрын
oh angel sent from up above,you know you make my world light up
@LucidProgramming4 жыл бұрын
Thanks! If you like the content, consider subscribing to LucidProgramming! :)
@anne-marieroy88126 жыл бұрын
Excellent tutorial, very clear and thorough. Thank you.
@LucidProgramming6 жыл бұрын
No problem, Anne-Marie. If you like this content, I hope the content on my channel would also serve you well. Thanks for your comment, and happy coding!
@_hindu_warriors Жыл бұрын
can someone tell me dataset used in this vedio is dynamic or not ??
@sefatergbashi4 жыл бұрын
Thank you so very much! This was very comprehensive and satisfying
@LucidProgramming4 жыл бұрын
Cheers! If you like what you see, consider subscribing to LucidProgramming! :)
@paulkerrigan98574 жыл бұрын
Amazing. No doubt your next video will be entitled "How to Replace Your Car Engine". Eighty eight minutes will be devoted to picking the correct pair of fluffy dice and two minutes will feature you typing a quick email to your mechanic. I watched this thinking "when are they going to mention the sentiment analysis?"
@synthefire4 жыл бұрын
lol. I guess you were never a beginner just evolved straight to advanced huh. Or you don't know how to fast-forward, they even set up cue points in the description. Make your own video :)
@karthikbankapur35204 жыл бұрын
Thank you for this video, everything was explained in detail as it should be , learned something new .
@vikramchauhan57445 жыл бұрын
Explained really well.
@keshavsharma93803 жыл бұрын
Thanks for the code Lucid!
@novitasariarlim12944 жыл бұрын
thanks. You describe in easy to understand words
@kaushalkumar30174 жыл бұрын
Thanks a lot Vincent ... really very helpful
@Adam-wi4wd3 жыл бұрын
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 ?
@GustavAgar3 жыл бұрын
I want to know the same
@muj68894 жыл бұрын
thanks for the video and you get a new subscriber here
@ReasonToKeepGoing5 жыл бұрын
You are an angel sent from above! absolutely amazing... Thank you for this tutorial, it was much needed. So in depth, great explanations and really structured. definitely subscribing.
@LucidProgramming4 жыл бұрын
I know this is a late response, but thank you! :)
@ReasonToKeepGoing4 жыл бұрын
@@LucidProgramming better late than never 😄
@LucidProgramming4 жыл бұрын
@@ReasonToKeepGoing Haha, thanks! :)
@TheDouglasDale4 жыл бұрын
Excellent video. Thank you sir!
@simplet33066 жыл бұрын
Love you buddy i support you
@LucidProgramming6 жыл бұрын
Thank you very much, I appreciate the support!
@atulkumar7815 жыл бұрын
Hey awesome work, really appreciate your hard work
@vivekrajak74744 жыл бұрын
Amazing learning, it's like getting Farari for free. Thank you so much❤️......but could you please make a brief video on only sentiment analysis because sometime we get a negative count for a positive tweet as well ☹️
@esratiras40904 жыл бұрын
Thank you very much you are perfect person
@ronmiakanmode83353 жыл бұрын
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.
@keirwhitlock19406 жыл бұрын
What vim plugins are you using? I'm loving how yours looks.
@LucidProgramming6 жыл бұрын
Hi Keir. Thank you for the comment. If you go over to my channel and check out my Vim playlist, specifically the following video, that will give you what you need to setup Vim like mine is. While you're over there, if you find content you enjoy, please consider subscribing! Cheers, and happy coding: kzbin.info/aero/PL5tcWHG-UPH2HrF5M7-IIXK6JSRG0obYo
@VeeWebCode6 жыл бұрын
Awesome Video.
@LucidProgramming6 жыл бұрын
Thank you! I hope you found the content useful. If you like videos like this, please consider checking out my channel. Cheers, and thanks for your kind comment!
@KEERTTIK6 жыл бұрын
Hello world... It's siraj..
@LucidProgramming6 жыл бұрын
Haha, he's one of my favorite KZbinrs. Thanks for your comment, and if you like this type of content, please do consider checking out the other videos on my channel. Indeed, I hope that a fellow enthusiast of Siraj may find some entertaining videos. Cheers!
@KEERTTIK6 жыл бұрын
@@LucidProgramming i just subscribed
@LucidProgramming6 жыл бұрын
Thank you Keerttik, I really appreciate your support! Cheers, and I hope you find the content of my channel to be useful. Have a great day!
@sumanshu.nankana5 жыл бұрын
Hello Sir, We have not called the on_data() function. How is it printing the tweets? (around @ 15:00)
@juhu55043 жыл бұрын
I don't have ACCESS_TOKEN and ACCESS_TOKEN_SECRET, only have BEARER_TOKEN. How can I complete this tutorial and stream real time data from Twitter?
@kitcharizard52812 жыл бұрын
Did you find an answer to it?
@adarshsingh9364 жыл бұрын
Could you post a video to create a sentiment analyser if we don't want to use Textblob
@berradi55214 жыл бұрын
Thanks for your effort
@ravibansal80125 жыл бұрын
Thanks a lot sir fir this excellent tutorial. I have a doubt that what to do with that twitter streamer class and hash tag list and how these can be used to create time series plots of live tweets data
@SURAJKUMAR-fp6zb4 жыл бұрын
how to get tweets using twitter id please help ...
@Softwareengineeringdev6 жыл бұрын
Great sir thanks a lot!
@LucidProgramming6 жыл бұрын
No problem, I hope you found the video useful. If so, please do consider subscribing and checking out the other content on my channel. Cheers!
@RahulGupta-wd3lf6 жыл бұрын
Good video became a subscriber
@LucidProgramming6 жыл бұрын
Very much appreciated Rahul, thank you!
@harshpratapsingh76404 жыл бұрын
what compiler are you using?
@facundolubo2 жыл бұрын
I'm stuck with the callback and website issue. where i can get an idea to solve this? None of youtube videos shows it... i'm begginer with API's
@bi265 жыл бұрын
Any alternative for someone like me whose developer account application was not approved by Twitter? How can i get my Twitter credentials?
@iloveyoueggegg4 жыл бұрын
I might be being stupid but what programme is this? @5:22
@akilhosang96555 жыл бұрын
I've had a problem creating the application. When I filled out the details to create the app and hit create, it shows me a modal window saying "Review our Developer Terms" with nothing else to do. There's no way for me to create my app. Can anyone help?
@goldenbroccoli22675 жыл бұрын
thank you for your tutorial
@rajpatel20934 жыл бұрын
what should i do if i want to print that all data on html file?
@markchatting8204 жыл бұрын
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
@ΑθανάσιοςΣουλιώτης-θ2γ3 жыл бұрын
Can we download tweets of multiple users in the same time ?? OR each time we need to change the screen_name ??
@GeekXpert5 жыл бұрын
can you please help modify the code if we further include tweets that have emojis? please help!
@uditgoel69255 жыл бұрын
Check out the medium article they remove the emojis using their unicode
@GeekXpert5 жыл бұрын
please provide the link to it!!
@mostafagafer86215 жыл бұрын
Thanks a million for this video . but I am at the minute 33 and I am getting an error 'charmap' codec can't encode characters in position 197-201: character maps to . any help would be great please
@dsid41724 жыл бұрын
are you on windows?
@Justobolsa3 жыл бұрын
tweets.append(tweet.text.encode("utf-8"))
@gleep50023 жыл бұрын
how would I do this for a large amount of tweets, maybe around a trend? and then export the sentiment data to perform analysis
@nisalbandara3 жыл бұрын
You must first train a data set. visit kaggle.com it has a Twitter dataset. Use that
@ashufarswan3 жыл бұрын
In my code item fuction is not working properly it is giving random number of tweets..... what i can do to prevent it.
@jakaseptiadi98455 жыл бұрын
hy bro, what is the classifier algortihm do you used for sentiment clasiffication? is it Naive Bayes? or Support Vector Machine?
@aniruddh15074 жыл бұрын
it really depends on the data set. Usually sentiment analysis and Naive Bayes goes hand-in-hand. But on the real world, it is better to create a classifier that votes the best algorithm based on its accuracy and confidence level since the result is usually not reliable as the accuracy levels are volatile for every training set. Therefore... go with different classifiers and compare their accuracy, reliability. Once you come to a conclusion on which one is the best, rock and roll!! cheers!
@tsovinar862 жыл бұрын
hello i have a question if the tweepy installed but not work on VS can the same we write on anaconda? i had same problem for not intsalling for numpy
@abdulrahmanalmalood88445 жыл бұрын
I'm sorry, but what kind of coding tutorial that starts without mentioning the text editor will be used. I'm confused where to start the project.
@davidadu11134 жыл бұрын
Hi, can the following features be added to the stream.filter (created at, reply)? Thank you
@AIdevel Жыл бұрын
Its really though-provoking I really enjoyed this extraordinary lecture and I am really enthusiastic to apply this and add my own creative ideas ❤🎉🎉 Last question though How can I turn 1. 0,-1 into positive neutral and negative so that I can visualize them ?
@AngelicaAsahan-ez1mc5 жыл бұрын
What IDE did you use here?
@lionpersia5 жыл бұрын
Vim
@AngelicaAsahan-ez1mc5 жыл бұрын
@@lionpersia thanks for the info
@AngelicaAsahan-ez1mc5 жыл бұрын
it's confusing to use on windows
@lionpersia5 жыл бұрын
@@AngelicaAsahan-ez1mc ur welcome, mate
@lionpersia5 жыл бұрын
@@AngelicaAsahan-ez1mc If it's confusing, you can always use sublime or vscode.
@GiantShepherd4 жыл бұрын
Hi does it work with Jupyter notebook too ? Coz I’m trying and it’s not letting me excite import twitter_credential
@DanielWeikert6 жыл бұрын
Thanks a lot. Could you do that for facebook? Is there a particular reason why you first use a list and then a numpy array to create your column for the pandas DataFrame?
@LucidProgramming6 жыл бұрын
Hi Daniel. The Twitter API is specifically designed by and for Twitter. You could do something similar for Facebook, but the code would be different. The reason for going from a list to an array to a dataframe is dependent on what goals I happen to have for the data. For instance when I'm using a dataframe, this is due to the fact that I want to process and analyze the data, and Pandas dataframes are good at such things. I hope you found the video useful. If so, please do consider subscribing and checking out the other content on my channel. Cheers!
@lewiskori94265 жыл бұрын
@@LucidProgramming the video is really amazing!! just checked out your channel .great work.
@tarishigeetey80395 жыл бұрын
Thank You !!
@shubhambajaj26114 жыл бұрын
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
@saarthaksggautam98174 жыл бұрын
look for the last file.
@Korhal554 жыл бұрын
Hello, first of all, thank you for your video. It is very instructive and well structured. But I have an issue, I have follow your development but I cannot extract more than 200 tweets in my DataFrame, even if I write 1800 in the count in the "user_timeline" function. Do you know if there are a limitation of extract? I use Anaconda and JupyterLab to code. Thanks by advance.
@srilathamaddineni38954 жыл бұрын
same problem
@vaishnavideshmukh19724 жыл бұрын
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
@sandy1996kenya5 жыл бұрын
hi, I would like to do sentiment analysis bt not use the traditional positive, neutral and negative categories, bt rather a much broader one, how do I go about that
@hardikkumar5984 жыл бұрын
a question, does TextBlob use a classification algorithm like SVM, Naive Bayes etc. to calculate the sentiment polarity ?
@jeelbhalodia45014 жыл бұрын
Can you please suggest how can I write some unit tests for this project?
@LucidProgramming4 жыл бұрын
Look into the "unittest" framework in Python.
@webdeveloper31164 жыл бұрын
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.
@ifestos19772 жыл бұрын
Great. thanks alot
@kashifzaidi1524 жыл бұрын
In this video, which platform you are using to write code
@sauravkokane34903 жыл бұрын
How to restrict no. of tweets?
@aishwaryar23795 жыл бұрын
Hi, could u just let me know how to download 3200 statuses. I am able to download only 200.
@talesamaral37444 жыл бұрын
My tweets are getting cut. I can't get the complete text from it. Always end with '...' earlier. Any clues why?:
@vishalsirka63974 жыл бұрын
Sir, please make a video on Tweeter Visualization and Sentiment Analysis in laravel(php)
@jsGuzi4 жыл бұрын
Can the sentiment analysis portion of this video be applied to other data sets instead of twitter?
@LucidProgramming4 жыл бұрын
Yes it can!
@aissoumonder35183 жыл бұрын
İs this code works for python 3.10?
@siddhanthnb4 жыл бұрын
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?
@kindaworks32932 жыл бұрын
Is this tutorial using v1.1 or v2 of Twitter API
@albertorubialesborrego32496 жыл бұрын
Hi i saw the tweepy documentation. But i can't solve my problem. I want to obtain tweets with 280 characters, not truncated to 140. How can I do? Thanks a lot! :)
@LucidProgramming4 жыл бұрын
This was a year ago, but hopefully, you found a solution. Thanks for watching in any case!
@santeau3 жыл бұрын
48:49 realDonaldTrump doesn't work anymore as an example
@sahanahv40714 жыл бұрын
Sir ,can I use pycharm for execution
@nisalbandara3 жыл бұрын
Yes, You can use pycharm or vs code both works well
@sakthim75384 жыл бұрын
Even After entering the keys i got 401 wts d reason sir?
@dhartipatel22984 жыл бұрын
I have the same problem. Did you find any solution?
@sakthim75384 жыл бұрын
@@dhartipatel2298 When I execute with cursor fn it goes well.
@sahanahv40714 жыл бұрын
Can I do it in pycharm
@akeelfarooq15855 жыл бұрын
when we analysing tweets how we can save these tweets on back end on json,txt,csv
@galinasabinovakarova52516 жыл бұрын
Can I do this in Jupiter Notebook?
@LucidProgramming6 жыл бұрын
Hi Galya. You certainly can, if you're more comfortable with that. I tend to use vim as it's an editor that's light-weight and gets out of your way. If you like the type of content in this video, I hope you can also find similar content on my channel. Thanks for your question, and have a nice day!
@ankitaarya79665 жыл бұрын
sir,does this code can handle sarcasm ??
@kamaldamian4 жыл бұрын
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
@praveen19919964 жыл бұрын
Twitter_credentials python file should be saved in the same folder of your project folder.
@MrEdd2155 жыл бұрын
Thanks!
@Karimschillspot5 жыл бұрын
When I try running tweepy_streamer.py I keep getting error | ModuleNotFoundError: No module named 'tweepy' Yes I have tweepy installed. It's located in my \AppData\Local\Programs\Python\Python37-32\Lib directory. Any help would be very appreciated.
@jahanvin10015 жыл бұрын
I was facing the same problem. Is this you first Pycharm project?
@StudyFun5 жыл бұрын
@@jahanvin1001 in my pc its running perfectly
@juanpguzman6665 жыл бұрын
error 401 my credentials are OK i've checked. its have something to be with the clock please help!! Greetings from Colombia
@harshadbhide52065 жыл бұрын
Make sure the clock on your machine is showing the correct time. Then regenerate all the credentials and try again. That worked for me
@calvinw28844 жыл бұрын
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?
@itissrinivasan4 жыл бұрын
print("most fav tweet is: ", str(df1[df1.retw_count==np.max(df1['retw_count'])].text.values)) Basically, find the max value of the "retweets' field. match that in the data frame. then take the tweet in the data frame where it matched. get the value (which here, is the text of the tweet)
@rajpatel20935 жыл бұрын
where you code it? software name ?
@synthefire4 жыл бұрын
vim
@akeelfarooq15445 жыл бұрын
help me sir it showa me error every time
@MrBuri785 жыл бұрын
Hi Vincent, First of all, thank you very much for this great content! It is very well explained and very useful! Thank you! I hope you'll find the time to give me an answer: I have two questions: 1.) in the following section: if __name__ == '__main__': twitter_client = TwitterClient() tweet_analyzer = TweetAnalyzer() api = twitter_client.get_twitter_client_api() tweets = api.user_timeline(screen_name='@realDonaldTrump', count=200) you have only one twitter user (realDonaldTrump). Is it possible to "follow" more than one person/institution to get their tweets downloaded? 2.) Is there any possibility to get more than 200 tweets? When I overwrite the "200" lets say with '2000', i still get only 200 tweets. An answer would be highly appreciated. Thank you very much and Regards Buri
@LucidProgramming4 жыл бұрын
Thanks for the comment. Unfortunately I didn't see this until just now. If you want a more immediate response, I would suggest checking in on my channel. W.r.t your question, yes it is, and it's stated how to do so in the docs!
@paulkerrigan98575 жыл бұрын
When in doubt, add another layer of pointless wrapper classes. :D
@hajeerakhanam1785 жыл бұрын
please share the code
@ShravanKumar-xc6ij5 жыл бұрын
By the way, what do you do?
@LucidProgramming4 жыл бұрын
It's on my KZbin channel, LucidProgramming!
@danishmuzafar55724 жыл бұрын
Plz help me i have research on Depression Detection using Emotion Arificial Intelligence with the help of CNN RNN LSTM
@faheemrajwadkar71005 жыл бұрын
How to make twitter apps now? apps.twitter is closed and is replace with developer.twitter and to create an app there you need to apply for a developer account which will only be used when approved. Any workaround?
@alisaghi0515 жыл бұрын
No,it is not closed!
@sadhnarohilla18415 жыл бұрын
@Faheem Rajwadkar is your problem resolved? becoz m also facing the same probem. I dont know how much time will it take to approve my developer account so that i can have access to twitter api
@hectorromero6853 жыл бұрын
Someone try something with instagram?
@varunjha77316 жыл бұрын
I m getting 401 continuously
@LucidProgramming6 жыл бұрын
Hi Varun. Did you make sure to place in the proper API access tokens into the credentials file?
@juanpguzman6665 жыл бұрын
@@LucidProgramming i have the same problem my credentials are good
@vincentrusso65635 жыл бұрын
@@juanpguzman666 You might be making too many requests to the server. You can either hold off on running the code and making requests for a little while or reset your system clock.
@mddaud60296 жыл бұрын
It's nice,help me
@LucidProgramming6 жыл бұрын
Very happy to hear that Md Daud. If you like content like this, I hope you check out my channel where I have other videos with a similar flavor. Cheers, and very happy to hear that you've benefited from the video!
@rosybanerjee18844 жыл бұрын
This entire program coding is not running at all in Python and giving errors. It is like as below : from tweepy import API ModuleNotFoundError : No module name 'tweepy' def get_twitter_client_api(self): ^ IndentationError: unindent does not match any outer indentation level. ------------------------------------------------------- But in reality I already have tweepy in my system.
@aishwaryakhot93533 жыл бұрын
using realDoanaldTrump to analyze tweets, well that account does not exist anymore :D