- Видео 19
- Просмотров 471 776
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-roBER...
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-roBER...
Просмотров: 1 396
Видео
How I get Tweet data for FREE in 2024 as a data scientist
Просмотров 24 тыс.5 месяцев назад
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
Просмотров 23 тыс.Год назад
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.
Просмотров 3692 года назад
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,1 тыс.2 года назад
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 ✅: ruclips.net/video/o1zNIm8GVPY/видео.html - Why captchas are getting harder: ruclips.net/video/lUTvB1O8eEg/видео.html - I'm not a robot: ruclips.net/video/jCr6rNaZ9EU/видео.html - reCAPTCHA: Tough on Bots, Easy on Humans, Great on Mobile - Google I/O 2016: ...
Run Python in the browser with PyScript
Просмотров 1,5 тыс.2 года назад
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
Просмотров 8302 года назад
Learn how to install Python 3.10.4 on Windows 11, and run your first Python script.
This AI sees math | Python project
Просмотров 1 тыс.2 года назад
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
Просмотров 107 тыс.2 года назад
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
Просмотров 97 тыс.2 года назад
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,7 тыс.2 года назад
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...
How to Get Real-time Tweets by Python
Просмотров 19 тыс.2 года назад
How to Get Real-time Tweets by Python
Get TWEETS by User and Hashtag with Python | Twitter API 2022
Просмотров 36 тыс.2 года назад
Get TWEETS by User and Hashtag with Python | Twitter API 2022
How to get TWEETS by Python | Twitter API 2022
Просмотров 148 тыс.3 года назад
How to get TWEETS by Python | Twitter API 2022
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...
Looks like X have blocked this. Returns twikit.errors.BadRequest: status: 400, message: "{"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}"
yes am also having the same error
do u know any other way to get the twitter data?
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 RUclips. 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🫡
Bets video on the internet regarding this topic. You have no idea how much this helped me. 17:54 made me chuckle ahah
@aispectrum kindly help as I'm facing this error: 2024-09-10 16:22:49.316101 - Getting tweets... Traceback (most recent call last): File "C:\Users\user\Desktop\Generative-ai\main.py", line 55, in <module> tweets = get_tweets(tweets) ^^^^^^^^^^^^^^^^^^ File "C:\Users\user\Desktop\Generative-ai\main.py", line 18, in get_tweets tweets = client.search_tweet(QUERY, product='Top') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\Desktop\Generative-ai\.venv\Lib\site-packages\twikit\client.py", line 660, in search_tweet response = self._search(query, product, count, cursor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\Desktop\Generative-ai\.venv\Lib\site-packages\twikit\client.py", line 602, in _search response, _ = self.get( ^^^^^^^^^ File "C:\Users\user\Desktop\Generative-ai\.venv\Lib\site-packages\twikit\client.py", line 169, in get return self.request('GET', url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\user\Desktop\Generative-ai\.venv\Lib\site-packages\twikit\client.py", line 152, in request raise Forbidden(message, headers=response.headers) twikit.errors.Forbidden: status: 403, message: ""
1:24 can you explain why you imported all these things? I would like to learn this stuff but you're just saying what you're doing instead of explaining what it does or why you would want to do that.
Thank you sir
TypeError: AsyncClient.__init__() got an unexpected keyword argument 'proxy'. pls help me sir