Тёмный

Get UNLIMITED Tweets by Python Without Twitter API 

AI Spectrum
Подписаться 5 тыс.
Просмотров 105 тыс.
50% 1

Learn how to get twitter data with no limits, no API and no authentication.
Code on GitHub:
github.com/meh...

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 453   
@ker-balkanrider
@ker-balkanrider Год назад
Unfortunately, as of July 2023, this library no longer works because Twitter implemented a login wall for the public website.
@OlivierNayraguet
@OlivierNayraguet 5 месяцев назад
Thank you. They all fell apart.
@sarahmuller8893
@sarahmuller8893 2 года назад
You literally saved my thesis with this! Thank you so so much, I could understand everything you did even with just some basic knowledge in python :) Thank you so much for this vid and your help! 🙏
@ardahiz2003
@ardahiz2003 Год назад
haha mine too
@raminsepehrirad7758
@raminsepehrirad7758 Год назад
Hah... same thing here :D
@anirudhsrivastava3530
@anirudhsrivastava3530 Год назад
mine too
@xtxpxhx
@xtxpxhx Год назад
i think you might saved mine as well
@manitashrestha3951
@manitashrestha3951 Год назад
hi! whats thesis topic. well i have only a month left for the master deadline but i have not started due to mental health issues. i am thinking of doing sentiment analysis on twitter data.
@Mauntium
@Mauntium Год назад
Thanks to you I just cobbled together a twitter scraper that downloads all images that a user tweeted, with next to no Python experience, in more-or-less one afternoon. It's scary how little it takes to make a scraper. Thanks for the video! Edit: I just noticed that some tweets are missing. Actually, if you go to someone's home page and compare that to the advanced search results, you'll see that twitter's own search is missing some posts. Since snscrape uses that search, it's results will be just as incomprehensive as twitter's own search. (note: this isn't a disaster scenario, the vast majority of tweets are found)
@cryptosmartguy4203
@cryptosmartguy4203 2 года назад
Cool library! Awesome you've listened to your subscribers and explained everything precisely. I'm excited what you'll come up with next!
@aispectrum
@aispectrum 2 года назад
Thanks for the support and nice comment! I'm happy that the video was clear.
@locuratalleres
@locuratalleres 2 года назад
Hey, this is amazing! I've been wasting a lot of time trying tutorials that were outdated or didn't work anymore. This works and is a solid foundation for a proper Twitter analysis. Thanks!
@girmayohannis4659
@girmayohannis4659 3 месяца назад
But it says blocked.What is the wrong with mine?
@wazclayjubuzz80
@wazclayjubuzz80 2 года назад
This is massive! Just saw this recently. I just scrapped off 5000 tweets. Please could you do more videos around web scraping and sentiment analysis 🙏 you're the best! 🙌🏿
@kojoarhin3481
@kojoarhin3481 2 года назад
hi
@LOLezzet
@LOLezzet 2 года назад
Hello, probably a stupid question, but where can I find all tweets after I generate them? How can I view them in something like an excel file? Thank you
@papo123994
@papo123994 Год назад
@@LOLezzet don't worry, now you have them saved in an array, you may just store them in a pandas DataFrame and save them as a CSV or as an Excel!
@susmithanimushakavi6426
@susmithanimushakavi6426 Год назад
hey can you share the code asap
@skilltwins1145
@skilltwins1145 Год назад
@@susmithanimushakavi6426 you can do it like this : df.to_csv('path/yourFileName.csv', index=false)
@laxmishshetty9486
@laxmishshetty9486 Год назад
Bro, snscrape uses TwitterAPI under the hood.. please don't misinform people
@neroonose4585
@neroonose4585 2 года назад
Wow, a week of my life narrowed to a 7mins video. Thanks
@softsubhra
@softsubhra Год назад
This is not working now do you have any other idea please share
@aispectrum
@aispectrum 2 года назад
Thanks for watching! Check out this video for tweet sentiment analysis ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uPKnSq6TaAk.html P.S.: If you saw the error that "Tweet object hand attribute 'user'", try changing tweet.user.username to tweet.username
@Ozygny
@Ozygny Год назад
currently not working we want another one for Twitter X
@philipomelo
@philipomelo 2 года назад
I’m happy this video is back. Expecting more contents from you
@aispectrum
@aispectrum 2 года назад
Thanks for the support :)
@philipomelo
@philipomelo 2 года назад
@@aispectrum one more thing😁, could you please go a little bit deep when explaining stuffs in your videos. Helps beginners like me. Thanks. You the best👌🏽
@yasirabdulkareem9844
@yasirabdulkareem9844 2 года назад
Amazing job . easy to understand , clear talking , thank you so much Sir.
@aispectrum
@aispectrum 2 года назад
Thank you for your feedback and nice words! I'm happy that it was useful 🙂
@veronicanatividade
@veronicanatividade Год назад
OMG!!!! Thank you so much!!! You literally saved my thesis!
@akhilpadmanaban3242
@akhilpadmanaban3242 Год назад
Hey Is it working, Im getting an error raise ScraperException(msg) snscrape.base.ScraperException: 4 requests to
@naifalkhunaizi7847
@naifalkhunaizi7847 11 месяцев назад
This is blocked now, can't be used. Thanks for the video anyway!
@aananasjuice
@aananasjuice Год назад
thank you so much for this video, you literally saved my group project that's due in a week!!
@LuanSantos-oz2tb
@LuanSantos-oz2tb 2 года назад
Man, thank you so much! I was having dificult to do this and you made this so simple, thank you again! You're the best, just continue doin web scraping and sentiment analysis videos!
@alisonliu5186
@alisonliu5186 Год назад
This is a life-changing video! I am waiting for my application for a Twitter developer account to be passed, and I found this video. Now I can start doing my project! Thank you sooooooo much! 💯
@april147
@april147 2 года назад
Thank you so much! You just saved my life! I already subscribed. Keep making quality and precise content like this 💕
@aispectrum
@aispectrum 2 года назад
Thank you! Glad that it helped!
@LOLezzet
@LOLezzet 2 года назад
Hello, probably a stupid question, but where can I find all tweets after I generate them? How can I view them in something like an excel file? Thank you
@informalibre8403
@informalibre8403 8 месяцев назад
Very cool, thank, but now, that doesn’t work anymore.
@marcoschmid1410
@marcoschmid1410 2 года назад
You are my hero! After so many days ... you just serve us the solution for our problem ^^ THX!
@jonatapaulino
@jonatapaulino Год назад
Congratulations on the video. I think many were in need of this video. I usually used the twint library, but I was having some problems. Thanks for sharing.
@nikhilkumargupta7359
@nikhilkumargupta7359 Год назад
is this still working as showing error in my system
@greatname6651
@greatname6651 Год назад
@@nikhilkumargupta7359 I'm also getting error. Errors: blocked (404), blocked (404), blocked (404), blocked (404). Twitter blocked it?
@mohsinparmar6943
@mohsinparmar6943 Год назад
It shows the same error to me as well.
@obiradaniel
@obiradaniel 2 года назад
OMG, you have no idea how helpful this is, saved me days of being limited by the API. Thank thank you very much. Just got 80,000 tweets for a project I will work on later.
@LOLezzet
@LOLezzet 2 года назад
Hello, probably a stupid question, but where can I find all tweets after I generate them? Thank you
@obiradaniel
@obiradaniel 2 года назад
@@LOLezzet In the Dataframe, you can export to Excel or Sqlite.
@abdulshaikh2401
@abdulshaikh2401 Год назад
As Twitter has stopped the elevated access from being free and started a paid basic service therefore this library has also stopped working
@khedekarnishantaniruddhaan463
@khedekarnishantaniruddhaan463 2 года назад
This is huuuge! I just found a gem of a channel!!!
@raminsepehrirad7758
@raminsepehrirad7758 Год назад
Liked it very much. Thanks, Mehran!
@omidtaghipour5303
@omidtaghipour5303 Год назад
After searching for a solution for a week. Finally I found your video and worked for me. Thanks a lot for sharing this.
@ExploreLahore123
@ExploreLahore123 Год назад
@AI Spectrum sn scrape is not working now as twitter is blocking it kindly tell the solution
@Wanderslayer
@Wanderslayer Год назад
it throws an error, stack overflow is kind of confusing on this issue raise ScraperException(msg) snscrape.base.ScraperException: 4 requests to api.twitter.com/2/search/adaptive.json?include_profile_interstitial_type=1&include_blocking=1&include_blocked_by=1&include_followed_by=1&include_want_retweets=1&include_mute_edge=1&include_can_dm=1&include_can_media_tag=1&skip_status=1&cards_platform=Web-12&include_cards=1&include_ext_alt_text=true&include_quote_count=true&include_reply_count=1&tweet_mode=extended&include_entities=true&include_user_entities=true&include_ext_media_color=true&include_ext_media_availability=true&send_error_codes=true&simple_quoted_tweets=true&q=python&tweet_search_mode=live&count=100&query_source=spelling_expansion_revert_click&pc=1&spelling_corrections=1&ext=mediaStats%2ChighlightedLabel failed, giving up.
@bilalabyssal7885
@bilalabyssal7885 Год назад
i got the same problem too
@alirezamashhadihossein
@alirezamashhadihossein Год назад
I have the same problem. Does anyone know how to solve it?
@wuzkhaliffo7978
@wuzkhaliffo7978 Год назад
Same problem from yesterday..
@danielrojaspena3751
@danielrojaspena3751 Год назад
Me too
@stefan6825
@stefan6825 Год назад
have you tried to update snscrape? there was a new update yesterday
@mandidmalai
@mandidmalai Год назад
Perfect explantations. Thanks so much! (:
@otaviocoutinho2855
@otaviocoutinho2855 Год назад
Hey man you had definently impact on thousants of projetcs now on. Thank you for your service
@udhayas2932
@udhayas2932 Год назад
for scraping tweets in this way is we have to use any pyrox server? it always throws error to me
@DomenicoLorenzoAltieri
@DomenicoLorenzoAltieri Год назад
love you, I will acknowledge you in my thesis
@AminuteCrafts
@AminuteCrafts Год назад
Bro I am getting an error at line 6 “block 403 “ request failed giving up What I do?
@shivanipendela
@shivanipendela 5 месяцев назад
i got the same error bro do you have any solution ?
@murniit1328
@murniit1328 Год назад
You save my thesis, thank you so much, you're the best sir
@atanasdobrikov5836
@atanasdobrikov5836 Год назад
I do not usually write comments, but you man just saved my thesis. Thank you so much! This was extremely helpful, not all heroes wear capes! 🙌
@kalaipradeep2753
@kalaipradeep2753 11 месяцев назад
Twitter scraping are filling : blocked (404)
@instasol2453
@instasol2453 2 года назад
Love you Man! You are truly a life saver! God bless you!!
@bobiastongartz803
@bobiastongartz803 2 года назад
Amazing content - Thank you so much! One question: Is it also possible to collect all replies to a certain tweet using e.g the tweet ID? Because I need not only the tweets with certain key words, but also the replies to the respective tweets. Would be much appreciated!
@yasminemohamedabdelhamid6876
Did you find the dataset?
@mysecretYOUTUBE
@mysecretYOUTUBE Год назад
for you guys if you want this guide video, it works but you must use the latest version
@danielrojaspena3751
@danielrojaspena3751 Год назад
Hello, the latest version of what? I updated snscrape and it didn't work.
@igdebagusjanardanaabasan3102
thank you, you just saved my time. As you know the current api twitter need academic research role to get all tweets, but its not gonna work for undergraduate study hmm
@nathaliamello5277
@nathaliamello5277 2 года назад
Great video, helped me a lot! Thank you so so much, sir
@cindypadilla832
@cindypadilla832 2 года назад
Your videos are great! I hope you keep posting more videos :D
@aispectrum
@aispectrum 2 года назад
Thank you very much! I will do! 🙂
@xiaoyunai6295
@xiaoyunai6295 2 года назад
Thank you so much! You have saved my cs project !!
@aispectrum
@aispectrum 2 года назад
Glad it helped!
@manitashrestha3951
@manitashrestha3951 Год назад
hi. this code was working fine. but today its not and saying .errors retrieving blocked. could u please check?
@manitashrestha3951
@manitashrestha3951 Год назад
fyi i also update snscrape . now there is scraper exception failed giving up
@faiqmadani1498
@faiqmadani1498 2 года назад
nice video bro, you save my master degree task about data mining
@sohamgotmare2837
@sohamgotmare2837 Год назад
Getting error ' blocked (404)' what to do?
@shrehansrai5673
@shrehansrai5673 9 месяцев назад
do you got anything i need help
@sohamgotmare2837
@sohamgotmare2837 9 месяцев назад
No, As Elon musk has blocked web scraping X / Twitter
@shrehansrai5673
@shrehansrai5673 9 месяцев назад
@@sohamgotmare2837 did you find anything
@tinadao3921
@tinadao3921 2 года назад
Thank you so much! Your videos are great!
@aispectrum
@aispectrum 2 года назад
I’m happy that they are helpful!
@anubhavsarkar7220
@anubhavsarkar7220 2 года назад
was just about to give up on a project saved my hard work
@aispectrum
@aispectrum 2 года назад
Glad to hear that!
@vrijeuniversiteitresearchd933
@vrijeuniversiteitresearchd933 2 года назад
Great video. Many thanks for such a great solution
@isharanoah2483
@isharanoah2483 Год назад
Thanks for such an amazing and helpful video. I would like to learn how to save the twitter data as CSV for further analysis. Thanks once again.
@sanahnahk7312
@sanahnahk7312 Год назад
Thanks a loooot for this code, It saved my life. QUESTION: Can i download facebook comments from public page with this library ?
@techsupercharged
@techsupercharged 2 года назад
Hey, thanks for this amazing tutorial. Much needed :) I have one question where would the CSV file have been saved on mac?
@jonathanmiguelcomasgarcera148
@jonathanmiguelcomasgarcera148 2 года назад
In the same folder where you have created the .py file
@gianthog8346
@gianthog8346 2 года назад
thank you sir, your video really helped me in learning as a school kid, it seems your explanation is clearer than my teacher, don't forget to upload videos often
@aispectrum
@aispectrum 2 года назад
Thanks! Glad to hear that!
@jorgebernardofloressullon6841
Your content makes me happy. I have a doubt, all the tweets appear with "..." at the end. Is there any way to get the full text of each tweet. Please
@samuraiblack
@samuraiblack Год назад
Did you ever figure this out? Trying to fix this as well
@sharmapn
@sharmapn Год назад
Dear Mehran, I really found this tool very helpful. I am grateful to you. Just wondering if for the tweets that contain a query term, - is there a way to get all the replies to those tweets, and - if the tweet is a reply to a tweet, get the original post. Thank you so much.
@yasminemohamedabdelhamid6876
Did you find the dataset?
@nipunathalpage5673
@nipunathalpage5673 Год назад
Hello, I am getting errors when using snscrape library. I tried Vscode, Google Colab and Spyder but neither worked, please help me fix it
@LukasCocinero
@LukasCocinero Год назад
Errors: blocked (404), blocked (404), blocked (404), blocked (404) anyone else get blocked ? new API conditions (thanks elon)? any solutions?
@learntocode_nithin
@learntocode_nithin Год назад
It was not working,it was giving many errors
@awwaliyahnurfadhilah6744
@awwaliyahnurfadhilah6744 2 года назад
Hello, I want to ask. How to scrape tweet that include information about someone who retweet? Thank you.
@dineshparwani9979
@dineshparwani9979 2 года назад
Thanks a lot, this was very helpful
@DavidWangstoryteller
@DavidWangstoryteller 2 года назад
That is amazing! I need to learn Python.
@Juan-Hdez
@Juan-Hdez Год назад
Very useful. Thank you!
@robotvivo5158
@robotvivo5158 Год назад
Un millon de Gracias!! thanks Bro!!
@caseygoldstein9833
@caseygoldstein9833 Год назад
Great video. I'm having hard time running this code, and am wondering if it's because Twitter's new policies with their API. It looks like my code attempts to make requests to Twitter four times before giving up. Thank you!
@debbiereynolds8510
@debbiereynolds8510 Год назад
I think I am having the same issue -- I copied and pasted the code directly from the github and got a 403 error 😭
@yoqueopino
@yoqueopino Год назад
Same here...Errors: blocked (404), blocked (404), blocked (404), blocked (404). Something about the Guest User o something like that... it's broken right now
@busracelik1165
@busracelik1165 Год назад
It doesnt work please what is other preferences to get twitter data
@rajafawad8118
@rajafawad8118 2 года назад
Appreciated! very helpful for me. Thank you for your video
@aispectrum
@aispectrum 2 года назад
Glad it was helpful!
@LOLezzet
@LOLezzet 2 года назад
Hello, probably a stupid question, but where can I find all tweets after I generate them? Thank you
@jaynastics2
@jaynastics2 2 года назад
Thank you so much for this video - super helpful! Do you have any resources on how to scrape the replies to these tweets?
@rasyidharun2316
@rasyidharun2316 2 года назад
Thank you. It really works!
@LOLezzet
@LOLezzet 2 года назад
Hello, probably a stupid question, but where can I find all tweets after I generate them? Thank you
@rasyidharun2316
@rasyidharun2316 2 года назад
@@LOLezzet In your folder where you create tweets.py. You should convert to CSV too btw.
@riccardoandreoni_
@riccardoandreoni_ 2 года назад
Great video, I was struggling with the Twitter API limit. Just one question, I want to perform sentiment analysis on a topic and to study the evolution of the sentiment over time. When I scrape the tweets I get only the one that are near the upper bound of the specified period. A solution will be to execute many queries specifying a narrow period. But, is there an automated way in snscrape to retrieve equally spread tweets?
@shh3356
@shh3356 Год назад
have you found an answer for this hahah looking to do the same
@viral_videos124
@viral_videos124 11 месяцев назад
Hello have u completed your project in Sentiment Analysis please reply
@gustavoviana1178
@gustavoviana1178 2 года назад
Thanks! It helped me a lot!
@LOLezzet
@LOLezzet 2 года назад
Hello, probably a stupid question, but where can I find all tweets after I generate them? Thank you
@NumaanQayoom
@NumaanQayoom 6 месяцев назад
Its not working today.
@bishnudas8638
@bishnudas8638 4 месяца назад
This doesn't work anymore as I have tried doing it. Nevertheless, request you to post a video so that we can easily use Twitter data for Sentiment Analysis.
@nurulhanisahmuhammadhaasin885
Hi, thanks you so much for the tutorial . It really helping me. Btw, do you know how to set the query to specified the location of the tweet
@FelixL2010
@FelixL2010 Год назад
Very good to know, thank you.
@bhoomipatel588
@bhoomipatel588 2 года назад
Hi sir, I followed your all tutorial and love it. I searched whole RU-vid but I didn't found any single tutorial on multiple twitter accounts sign up automation. Can you please create one?
@sabsela2863
@sabsela2863 Год назад
Awesome video! Thank you! Do you have a suggestion, how I can get the comments under one tweet? And do you know a solution to get all tweets, because I just get a quarter of all tweets...That would be super helpful!
@yasminemohamedabdelhamid6876
Did you find the dataset?
@Haim0s
@Haim0s 2 года назад
Thanks for this guide! There is a way for search by location?
@murtazahussain8485
@murtazahussain8485 Год назад
SnScrape does not work any more, It is getting blocked.
@njbotor
@njbotor Год назад
Hi, does this still work with the new twitter? I'm not sure why I am having error. Thanks a lot for this video.
@ahmed1180
@ahmed1180 2 года назад
Great video, thank you for your time ! I still have a question: I scrapped few hundreds tweets from a user and when I double checked manually I realized that some tweets were missing (not talking about retweets). I reran the line of codes several times and everytime it is the same tweets missing. Is there a reason why some tweets could be missing + is there a way to avoid that? Thanks a lot !!!
@aispectrum
@aispectrum 2 года назад
This library searches for the query and scrape the results to get the tweets. I think the issue is that twitter doesn't return all the tweets of the specified users in search results. Maybe you could try the TwitterUserScraper method to see if it solves the issue.
@bart8596
@bart8596 2 года назад
You're the best!
@aispectrum
@aispectrum 2 года назад
Thank you!
@andreasmykland9515
@andreasmykland9515 Год назад
Hey! When i run the script, I get a non-200 status code in return where I cannot retrieve data from the twitter api. A link related to the twitter api is presented to me, where i find a error message code "2015" for bad authentication. Do you or anyone have some experience with this, and how to work around it? Thank you :)
@danielrojaspena3751
@danielrojaspena3751 Год назад
pip install --upgrade snscrape
@andreasmykland9515
@andreasmykland9515 Год назад
@@danielrojaspena3751 That works - thank you !!
@kaicyrus0
@kaicyrus0 3 месяца назад
GOOD JOB BUDDY
@moontraveler2940
@moontraveler2940 Год назад
Is it possible to get realtime tweets like in your other tutorial, but this time without API? Thanks!
@courtneytan7418
@courtneytan7418 Год назад
This is such a powerful tool, but with changes on the platform, this code no longer works for me. Are you planning on making a new video that does the same thing with another tool?
@mindlessbrowsing
@mindlessbrowsing Год назад
Hi I was wondering if you know whether the selection of tweets is random or not. (I specified my query on a specific date range, for 5000 tweets for example. How are these 5000 tweets chosen?)
@namansoni3575
@namansoni3575 Год назад
I ran the code, I get an error in which it says "unable to find guest Token". What might be going wrong?
@liorlidogoster6574
@liorlidogoster6574 2 года назад
great video! in which environment he work?
@itatul
@itatul 2 года назад
Great video ... thanks a lot !!
@aispectrum
@aispectrum 2 года назад
Happy that it was useful!
@giuseppemontefrancesco7192
@giuseppemontefrancesco7192 Год назад
Thank you! It works great! How can I delete retweets? I see the same tweet more times from different users
@wenzeln.8949
@wenzeln.8949 2 года назад
great video man. is it possible to „download“ all videos from a certain user and uploade the videos on my own
@stanleychukwuemeka8841
@stanleychukwuemeka8841 2 месяца назад
Is scraping millions of tweets still possible because i would like to build an AI model using the text data. Please if it's possible how can I go about it?
@HEINIKEN3
@HEINIKEN3 Год назад
This doesn't work. it is gone.
@RicardoGarciaM
@RicardoGarciaM 6 месяцев назад
Doesn't seem to work anymore. When pasting the code get: failed, giving up. Errors: blocked (404), blocked (404), blocked (404), blocked (404)
@jsinghpb
@jsinghpb 2 года назад
Thanks, it is really great!
@aispectrum
@aispectrum 2 года назад
I'm glad you like it!
@annarocha9769
@annarocha9769 2 года назад
awesomeeeeeeeeeeeeeeeeeee!! thank you!! suscribed :)
@ahmednawaz7295
@ahmednawaz7295 2 года назад
Hey great video! Can you tell me how to know the type of tweet (retweet, reply or tweet)?
@ronmiakanmode8335
@ronmiakanmode8335 10 месяцев назад
hi. thanks for this video. I'm getting a ScraperException error, long texts of jargons and the message that says "failed, giving up. Errors: blocked (404), blocked (404), blocked (404), blocked (404)" how do I get around this please?
@makena6487
@makena6487 10 месяцев назад
Did you solve this? I keep getting the same error
@codet9772
@codet9772 2 года назад
Thank you!
@aispectrum
@aispectrum 2 года назад
Glad that you enjoyed!
@sidsquad01
@sidsquad01 Год назад
Thank you very much fo r the video
Далее
How to get TWEETS by Python | Twitter API 2022
17:04
Просмотров 145 тыс.
Scrape Twitter with 5 Lines of Code
6:36
Просмотров 71 тыс.
How to save $50,000/month using Twitter API
10:37
Просмотров 12 тыс.
How Fast Can I Fill My Inbox?
13:30
Просмотров 306 тыс.
Sentiment Analysis with BERT Neural Network and Python
31:56
Nobody Cares About Your Coding Projects
11:02
Просмотров 108 тыс.
So, you want to build apps & websites?
9:34
Просмотров 184 тыс.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07