AI Spectrum
AI Spectrum
  • Видео 19
  • Просмотров 471 776
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...
Просмотров: 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
Is being SELFISH (NOT) effective?
Просмотров 2863 года назад
Is being SELFISH (NOT) effective?

Комментарии

  • @rekakutasi7573
    @rekakutasi7573 7 дней назад

    How can I retrieve tweets from Twitter nowadays without having to pay?

  • @marcositurbide3788
    @marcositurbide3788 19 дней назад

    Gracias! Me sirvio bastante Tuve complicaciones, pero al final pude hacerlo funcionar

    • @icktheprogrammer
      @icktheprogrammer 4 дня назад

      @marcositurbide3788 saludos hermano, te funcionó? Tenía miedo que X hubiese visto este video y lo dañe

  • @georgia-pro7357
    @georgia-pro7357 21 день назад

    Hi , so why not using Tweepy ?

  • @Dr_Larken
    @Dr_Larken 23 дня назад

    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!!!

  • @ShokoufehNaseri
    @ShokoufehNaseri 28 дней назад

    good job bro. the video is so clear and useful. do you know how can I apply for academic research access over X?

  • @aoigetsu
    @aoigetsu Месяц назад

    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?

  • @nasimbaledi1603
    @nasimbaledi1603 Месяц назад

    GTP!!

  • @gabrieldelrosario6692
    @gabrieldelrosario6692 Месяц назад

    Very valuable video, thank you

    • @Lang-kid
      @Lang-kid Месяц назад

      Do you run the code successfully?

  • @gabokings260388
    @gabokings260388 Месяц назад

    👏👏👏👏👏 genius!!!

    • @TienPham-kb6xr
      @TienPham-kb6xr 29 дней назад

      can you run the code successfully?

    • @gabokings260388
      @gabokings260388 29 дней назад

      @@TienPham-kb6xr yeah men, I ran it successfully several times to the point where my Twitter account got blocked🤣🤣🤣

    • @gabokings260388
      @gabokings260388 24 дня назад

      @@TienPham-kb6xr I was able to run it locally, and it worked, but my Twitter account got blocked from overuse

  • @abdelm4lek
    @abdelm4lek Месяц назад

    I hope you will still upload another version with a larger dataset

  • @bharatkori659
    @bharatkori659 Месяц назад

    It was very helpfull for me as a aspiring Data Scientist

  • @winicius12345
    @winicius12345 Месяц назад

    Still working?

  • @shrutitiwari2896
    @shrutitiwari2896 Месяц назад

    Your video content,quality is of top notch

  • @Kencha-learns-Devops
    @Kencha-learns-Devops Месяц назад

    it's not chatGTP...

  • @markblakey7444
    @markblakey7444 Месяц назад

    Looks like X have blocked this. Returns twikit.errors.BadRequest: status: 400, message: "{"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}"

    • @krishnabishtube
      @krishnabishtube Месяц назад

      yes am also having the same error

    • @adamekk_ko
      @adamekk_ko Месяц назад

      do u know any other way to get the twitter data?

  • @mabbbassa
    @mabbbassa Месяц назад

    Have you tried the Guest Client?

  • @ignacioibanez6332
    @ignacioibanez6332 Месяц назад

    Can anybody help me to run the code, i tried several times and i didn't worked.

  • @xxtseed
    @xxtseed Месяц назад

    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.

  • @wicherast
    @wicherast Месяц назад

    anyone get "status: 400, message: "{"errors":[{"code":399,"message":"Sorry, we could not find your account. "???

  • @RaulMercado
    @RaulMercado Месяц назад

    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!

  • @giorgiopallucchini6578
    @giorgiopallucchini6578 2 месяца назад

    Is it not safe for your twitter account?

  • @SebastianAguilar-ec5ul
    @SebastianAguilar-ec5ul 2 месяца назад

    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.

  • @mohsenshahi9750
    @mohsenshahi9750 2 месяца назад

    it's killing me.. status: 400, message: "{"errors":[{"code":366,"message":"Missing data."}]}"

  • @ramblingsofadegenerate1174
    @ramblingsofadegenerate1174 2 месяца назад

    is this api still working

  • @HariNainyarPillai
    @HariNainyarPillai 2 месяца назад

    @aispectrum i got Cookies loaded successfully. An error occurred: status: 403, message: ""

    • @ajayhiremath629
      @ajayhiremath629 2 месяца назад

      Same here, I belive Twitter blocked twikit as well I guess.

  • @aterynazinzura5498
    @aterynazinzura5498 2 месяца назад

    Hey man, I'm so happy you're doing this stuff on RUclips. Waiting for the next videos and thank you for your work!!

  • @yusufalkawri399
    @yusufalkawri399 2 месяца назад

    It doesn't work with me.

  • @花开陌路-t8u
    @花开陌路-t8u 2 месяца назад

    twikit 2.13 Can the blogger update the code?

  • @farhanalhafizh5874
    @farhanalhafizh5874 2 месяца назад

    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?

  • @gabyuquillastrujillo5082
    @gabyuquillastrujillo5082 2 месяца назад

    it's 2024 and snscrape not working anymore :(

  • @user-tl1qc9ym2y
    @user-tl1qc9ym2y 3 месяца назад

    can you please provide the code , thank you

  • @fpishita2725
    @fpishita2725 3 месяца назад

    🐐

  • @priyanshumathur7416
    @priyanshumathur7416 3 месяца назад

    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

  • @nishah4058
    @nishah4058 3 месяца назад

    I ran this code.. I get error 403 again and again like forbidden error.. what will Be the solution?

    • @sepu321
      @sepu321 2 месяца назад

      i got the same

  • @jimcollins6619
    @jimcollins6619 3 месяца назад

    Why are you using ConfigParser rather than the standard dotenv?

  • @tamassiklosi4138
    @tamassiklosi4138 3 месяца назад

    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."}]}"

  • @carolinaarroyo1785
    @carolinaarroyo1785 3 месяца назад

    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?

  • @MiniMinds-Moments
    @MiniMinds-Moments 3 месяца назад

    Getting this error {"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}

  • @markr87
    @markr87 3 месяца назад

    You are an amazing tutor. Bless you

  • @WillTrades-j7x
    @WillTrades-j7x 3 месяца назад

    Very informative! Would love to see the test on larger data set.

  • @shrimp801
    @shrimp801 3 месяца назад

    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}]}

  • @patrickngare
    @patrickngare 3 месяца назад

    The code is depreciated am getting this error even after using asyncio and await coroutine ""twikit. errors.Forbidden: status: 403, message: ""

  • @exp_d_dragon
    @exp_d_dragon 3 месяца назад

    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 😭

  • @petermamdouh9435
    @petermamdouh9435 4 месяца назад

    Any solutions ?? twikit.errors.BadRequest: status: 400, message: "{"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}"

  • @Speedylabs
    @Speedylabs 4 месяца назад

    Thumns up🫡

  • @WillTrades-j7x
    @WillTrades-j7x 4 месяца назад

    Bets video on the internet regarding this topic. You have no idea how much this helped me. 17:54 made me chuckle ahah

  • @JeremiahChalle
    @JeremiahChalle 4 месяца назад

    @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: ""

  • @i.o4766
    @i.o4766 4 месяца назад

    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.

  • @ebukachuqz
    @ebukachuqz 4 месяца назад

    Thank you sir

  • @BitterSweet-x8m
    @BitterSweet-x8m 4 месяца назад

    TypeError: AsyncClient.__init__() got an unexpected keyword argument 'proxy'. pls help me sir