- 19
- 479 090
AI Spectrum
เข้าร่วมเมื่อ 10 ต.ค. 2021
Twitter sentiment analysis for 100+ languages with roBERTa
In this video I show how to do sentiment analysis for multi-lingual tweets. I use a multilingual XLM-roBERTa-base model and Google Translate to handle different languages.
Code on GitHub:
github.com/mehranshakarami/AI_Spectrum/tree/main/2024/Multi-lingual%20sentiment%20analysis
Resources:
- XLM-roBERTa model: huggingface.co/cardiffnlp/twitter-xlm-roberta-base-sentiment
- googletrans: github.com/ssut/py-googletrans
Who Am I?
Hi there! If you’re new to the channel, my name is Mehran Shakarami. I got my PhD in Applied Math, and I'm currently a data scientist in the aviation industry. In this channel I share videos about AI, coding and math.
Content:
00:00 What am I going to do?
00:24 What is XLM-roBERTa?
03:00 Translate to English
05:49 Sentiment analysis of supported languages
15:05 Sentiment analysis with translation
20:50 Accuracy analysis
Code on GitHub:
github.com/mehranshakarami/AI_Spectrum/tree/main/2024/Multi-lingual%20sentiment%20analysis
Resources:
- XLM-roBERTa model: huggingface.co/cardiffnlp/twitter-xlm-roberta-base-sentiment
- googletrans: github.com/ssut/py-googletrans
Who Am I?
Hi there! If you’re new to the channel, my name is Mehran Shakarami. I got my PhD in Applied Math, and I'm currently a data scientist in the aviation industry. In this channel I share videos about AI, coding and math.
Content:
00:00 What am I going to do?
00:24 What is XLM-roBERTa?
03:00 Translate to English
05:49 Sentiment analysis of supported languages
15:05 Sentiment analysis with translation
20:50 Accuracy analysis
มุมมอง: 1 638
วีดีโอ
How I get Tweet data for FREE in 2024 as a data scientist
มุมมอง 28K6 หลายเดือนก่อน
Learn how to get tweet data for free! I’ll show you how to use Twikit, handle rate limit exceptions, save data in a CSV file, and compose complex search queries for Twitter scraping. *UPDATE*: To run the code, use *pip install “twikit 1.7.6”* to install the _twikit_ package. The latest update of _twikit_ deprecated the synchronous method which is used in the code. Code on GitHub: github.com/meh...
Get Access to the FREE ChatGPT API with Python
มุมมอง 24Kปีที่แล้ว
Learn how to start implementing ChatGPT in your Python code. In this video, I explain all the steps to set up a reversed engineered ChatGPT API (revChatGPT), and use it in terminal or in Python code. Resources: - revChatGPT: github.com/acheong08/ChatGPT - Projects made with revChatGPT: github.com/stars/acheong08/lists/awesome-chatgpt Who Am I? Hi there! If you’re new to the channel, my name is ...
ChatGPT wrote this video about itself.
มุมมอง 3702 ปีที่แล้ว
I asked ChatGPT to write a script about itself, and this is the result. My prompts to ChatGPT: 00:00 - I say hi to the viewer and explain that the script was entirely generated by ChatGPT, in conversation language 00:31 - explain what is natural language processing in conversation language 01:06 - explain how NLP has evolved over years in conversational language, and don't say "Keep watching .....
The evolution of CAPTCHA
มุมมอง 4.3K2 ปีที่แล้ว
Since 2000, CAPTCHAs have been annoying us online. But are they able to keep robots away? Let’s find out... References: - I'm Not A Robot ✅: th-cam.com/video/o1zNIm8GVPY/w-d-xo.html - Why captchas are getting harder: th-cam.com/video/lUTvB1O8eEg/w-d-xo.html - I'm not a robot: th-cam.com/video/jCr6rNaZ9EU/w-d-xo.html - reCAPTCHA: Tough on Bots, Easy on Humans, Great on Mobile - Google I/O 2016: ...
Run Python in the browser with PyScript
มุมมอง 1.5K2 ปีที่แล้ว
Now you can use PyScript and directly run Python in HTML. GitHub page of PyScript: github.com/pyscript/pyscript/blob/main/docs/tutorials/getting-started.md List of 3rd party modules: github.com/pyodide/pyodide/tree/main/packages PyScript demos: pyscript.net/examples/ Content: 00:00 - What is PyScript? 00:30 - Hello World 02:30 - Writing into HTML elements 03:34 - Importing 3rd party packages 05...
How to Install Python on Windows in 2022
มุมมอง 8352 ปีที่แล้ว
Learn how to install Python 3.10.4 on Windows 11, and run your first Python script.
This AI sees math | Python project
มุมมอง 1K2 ปีที่แล้ว
I wrote a program that sees handwritten math and plots it with the help of AI. Code on GitHub: github.com/mehranshakarami/AI_Spectrum/tree/main/2022/Math_plotter
Get UNLIMITED Tweets by Python Without Twitter API
มุมมอง 108K2 ปีที่แล้ว
Learn how to get twitter data with no limits, no API and no authentication. Code on GitHub: github.com/mehranshakarami/AI_Spectrum/tree/main/2022/snscrape
Twitter Sentiment Analysis by Python | best NLP model 2022
มุมมอง 98K2 ปีที่แล้ว
Learn how to accurately do Natural Language Processing (NLP) on twitter data, and use roBERTa model with python for tweet sentiment analysis. Code on GitHub: github.com/mehranshakarami/AI_Spectrum/tree/main/2022/Sentiment_Analysis roBERTa on Huggingface: huggingface.co/cardiffnlp/twitter-roberta-base-sentiment
Amazon Web Scraping with Python for Beginners in 2022
มุมมอง 4.7K2 ปีที่แล้ว
Learn how to do web scraping with Python and Beautiful Soup on Amazon.com, and save the data into a CSV file. Code on GitHub: github.com/mehranshakarami/AI_Spectrum/tree/main/2022/Web_Scraping Content: 00:00 - Intro 01:56 - Get HTML code of Amazon.com by requests 04:50 - Get all best sellers in books 07:25 - Extract ranks of books 09:13 - Extract titles of books 13:21 - Extract authors of books...
Get TWEETS by User and Hashtag with Python | Twitter API 2022
มุมมอง 36K3 ปีที่แล้ว
Get TWEETS by User and Hashtag with Python | Twitter API 2022
How to get TWEETS by Python | Twitter API 2022
มุมมอง 148K3 ปีที่แล้ว
How to get TWEETS by Python | Twitter API 2022
if i were to download python and start from scratch do I need to have any other packages installed/ IDEs to run this code
Awesome tutorial! Is there a way to integrate HasData's Twitter scraping API with these methods?
I guess this version 1.7.6 no longer works. - It did trigger a login attempt I received on mail, but it didn't actually work and cookies saved a blank json of {}. File "....\twikit\client.py", line 152, in request raise Forbidden(message, headers=response.headers) twikit.errors.Forbidden: status: 403, message: "{"errors":[{"code":353,"message":"This request requires a matching csrf cookie and header."}]}"
Not working bruh 😢
i don't get it i followed your steps to the dot and i get like a lot of fking errors, i used the 1.7.6 version for twikit but still a gazilion errors
Thanks a lot for this <3
Is the code working for you? Its giving me error code 400.
How can I retrieve tweets from Twitter nowadays without having to pay?
Gracias! Me sirvio bastante Tuve complicaciones, pero al final pude hacerlo funcionar
@marcositurbide3788 saludos hermano, te funcionó? Tenía miedo que X hubiese visto este video y lo dañe
Hi , so why not using Tweepy ?
I just found your channel, this is my third fourth video! I was going to subscribe, but I can’t tell if you’re still posting or if you’re going to continue with the channel!? Has a lot of potential!!!
good job bro. the video is so clear and useful. do you know how can I apply for academic research access over X?
Hİ, thank you for sharing this information. It's been great to see since *someone* is doing their absolute best to kill Twitter as a research tool. I am hoping to use the information shared for an academic research project. I was wondering, have you ever used twikit on Google Colab or just on Jupyter notebook?
GTP!!
Very valuable video, thank you
Do you run the code successfully?
👏👏👏👏👏 genius!!!
can you run the code successfully?
@@TienPham-kb6xr yeah men, I ran it successfully several times to the point where my Twitter account got blocked🤣🤣🤣
@@TienPham-kb6xr I was able to run it locally, and it worked, but my Twitter account got blocked from overuse
I hope you will still upload another version with a larger dataset
It was very helpfull for me as a aspiring Data Scientist
Still working?
Your video content,quality is of top notch
it's not chatGTP...
Have you tried the Guest Client?
Can anybody help me to run the code, i tried several times and i didn't worked.
Thanks for the tutorial! While coding the scraper is straightforward, I ran into some practical issues with proxies and rate limits. Found a workaround using Apify's free monthly credits ($5) - enough to fetch 20k tweets without dealing with proxies or API limits. Might be useful for others starting out.
anyone get "status: 400, message: "{"errors":[{"code":399,"message":"Sorry, we could not find your account. "???
You are a genius man! I am doing a thesis about epidemiological models applied to information difussion in Twitter, and of course I will need lot of tweets. Thanks!
ok it gives an error i think twitter has blocked access
is it working?
Is it not safe for your twitter account?
Do you know if the query syntax is different from that of the official API? When I try to use queries from the advanced search, I get errors in extracting data from the time frames I specified or the keywords I want to search for.
yeah, i'm getting the same errors
it's killing me.. status: 400, message: "{"errors":[{"code":366,"message":"Missing data."}]}"
is this api still working
@aispectrum i got Cookies loaded successfully. An error occurred: status: 403, message: ""
Same here, I belive Twitter blocked twikit as well I guess.
Hey man, I'm so happy you're doing this stuff on TH-cam. Waiting for the next videos and thank you for your work!!
It doesn't work with me.
twikit 2.13 Can the blogger update the code?
hey guys just wondering, i follow every step on the video but when i run the program it says: Traceback (most recent call last): File "d:\S1\TA\Scraping data\scraping.py", line 67, in <module> for tweet in tweets: ^^^^^^ TypeError: 'coroutine' object is not iterable <sys>:0: RuntimeWarning: coroutine 'Client.search_tweet' was never awaited anyone know how to fix it?
i found the same error , did you fix it???
@AZELOUALIDINEKAWTAR nope mate
it's 2024 and snscrape not working anymore :(
can you please provide the code , thank you
🐐
It's givinng me the following error when I ran the initial code to get 1 tweet: for tweet in tweets: TypeError: 'coroutine' object is not iterable sys:1: RuntimeWarning: coroutine 'Client.search_tweet' was never awaited Anyone has a solution for that? P.S. - I really loved this video of yours
are u able to login into the twitter?
@@rammarthi5790 Yes I am
I ran this code.. I get error 403 again and again like forbidden error.. what will Be the solution?
i got the same
Why are you using ConfigParser rather than the standard dotenv?
Great content! Unfortunately I'm getting this error upon authentication: twikit.errors.Forbidden: status: 403, message: "{"errors":[{"code":353,"message":"This request requires a matching csrf cookie and header."}]}"
please need your help i am doing a project and i have this error: Exception has occurred: BadRequest status: 400, message: "{"errors":[{"code":366,"message":"Required input 'LoginAcid' not provided."}]}" Someone know how I can fix it?
got the same problem, any ideas?
i got the same problem
Your account got banned or api
Getting this error {"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}
You are an amazing tutor. Bless you
Very informative! Would love to see the test on larger data set.
Hello! Does this error mean that the account is banned from scraping? Or does twikit have a rate limit since the code is already working then suddenly when i ran it again it had this error: twikit.errors.Unauthorized: status: 401, message: "{"errors":[{"message":"Could not authenticate you","code":32}]}
The code is depreciated am getting this error even after using asyncio and await coroutine ""twikit. errors.Forbidden: status: 403, message: ""
BadRequest: status: 400, message: "{"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}" //please need your help i am doing a project need this data please how can do that 😭
I met the same error 😭, did you find the solution ?
@@lemoncookies_applejuice did you?
did you find a solution
Any solutions ?? twikit.errors.BadRequest: status: 400, message: "{"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}"
Thumns up🫡