Using Python and YouTube API to Create Analytics on any Channel.

Поделиться
HTML-код
  • Опубликовано: 16 мар 2021
  • Python and RUclips's API can be used to generate data on any channel on RUclips for free. In this video, we dive into the API to generate some analytics on Mr. Beast's RUclips channel. We will then dig into these analytics and show you how to create some charts with your data. Understanding how to interact with an official API can help you unlock a ton of data sources for all kinds of Python analytics projects.
    I use Deepnote so you can follow along without installing anything on your local computer. Feel free to use any python installation to follow along locally will work as well. The GitHub link has the notebook I created in this video as well.
    -- Resources Used! --
    Getting your API Key - console.developers.google.com/
    Deepnote - deepnote.com/project/401eace2...
    Follow the link and in the top right corner click duplicate notebook!
    Want to chat with me and other programmers join our discord!
    / discord
    GitHub - github.com/ClarityCoders/YouT...
    RUclips API Docs - developers.google.com/youtube...
  • НаукаНаука

Комментарии • 39

  • @ThomaslIngenieur
    @ThomaslIngenieur 2 года назад +2

    Thanks mate, the best video on RUclips on this topic + massive thanks for sharing the notebook.
    Really clearly explained and fast enough to get an overview of the subject.
    I wish you the best mate - thanks for sharing such a technical & niche topic, despite the low amount of view it is tons of value for each of us really interested.

  • @skony85
    @skony85 2 года назад +3

    Great video. I've gone through the whole. Everything is explained clearly. Excellent for beginners in YT API like me.

  • @TinyKideo
    @TinyKideo Год назад

    The video is clean, easy to understand, and detailed. Can you please explain or make a video for extracting multiple channels information ... example, when you pull a list of 50 or 100 videos, instead, we extract a list of channels, let's say, with more than 50M subscribers?

  • @tempura_edward4330
    @tempura_edward4330 3 года назад +2

    Great video! Thank you so much 🙏

    • @ClarityCoders
      @ClarityCoders  3 года назад +1

      Thanks for watching I really appreciate it.

    • @abhishektyagi4428
      @abhishektyagi4428 3 года назад

      @@ClarityCoders love your content come back xdd

  • @aadhavanalakan97
    @aadhavanalakan97 2 года назад +2

    Great video. Simply amazing. I did it on a ton of RUclips channels experimenting with it. But I did come across one problem when dealing with bigger channels like CNN, Al Jazeera English, etc. They have nearly 100k videos uploaded and I used the same approach but I wasn't able to get all the videos. The max(len) of the video list was just 20k. Could you throw some light on it? I am struggling to get the full 100k dataset.

  • @JuanGabrielOyolaCardona
    @JuanGabrielOyolaCardona Год назад

    Thanks for sharing 😃🇨🇴💯🌱

  • @user-ox3qw9vs6t
    @user-ox3qw9vs6t 3 года назад +3

    great video, any dates on the opencv tutorials?

    • @ClarityCoders
      @ClarityCoders  3 года назад +2

      ruclips.net/video/fmThsnqUCF0/видео.html

  • @sanadhahri5744
    @sanadhahri5744 2 года назад

    Thank you great video

  • @sofypond2636
    @sofypond2636 2 года назад +1

    Is it possible to take the data for each video on a daily basis? Thanks!!

  • @eduardocruzism
    @eduardocruzism 2 года назад +1

    Amazing!

    • @ClarityCoders
      @ClarityCoders  2 года назад

      Thank you sir! Have any questions let me know.

  • @Mrroy08657
    @Mrroy08657 6 месяцев назад

    Hi bro , In Video Details , data how to fetch all the ' Video ID ' from Response Object at the same time with others details ? Here , ' Video ID ' can act as the Primary key here in analysis on all vdos .

  • @larryhuiran
    @larryhuiran 2 года назад

    really like your video! like to try each of them! LOL

  • @Jammujtaba7
    @Jammujtaba7 2 года назад +1

    How u get youtube data Api list string plzzz reply me plz

  • @superhittamilsongs
    @superhittamilsongs 2 года назад +1

    tag_count= len(video['snippet']['tags'])
    KeyError: 'tags'

  • @qiaolimo4976
    @qiaolimo4976 2 года назад +1

    why it always shows me "No module named 'googleapiclient'" after I successfully installed client library?

  • @HarperWolf
    @HarperWolf Год назад

    i am getting an error for "API_KEY" and im not sure why, it is giving me an error and stopping the code from running, do you know how to fix this?

  • @meldungenausderforschung6222
    @meldungenausderforschung6222 2 года назад +1

    hi, thanks a ton, this was easy to follow :) - My problem: it saves only a fraction of the data in to the csv file. For example, I looked at a channel with 1300 video, but there are only 23 in the file.

    • @ClarityCoders
      @ClarityCoders  2 года назад +2

      Sounds like paging is working correct or you are running out of API requests?

    • @meldungenausderforschung6222
      @meldungenausderforschung6222 2 года назад +1

      @@ClarityCoders The video data array is filled correctly, so it should not be the number of requests. Can I see somewhere, if I am running out? Also the "df" dictionary gives me results for the first and last video. Only saving it as csv appears to be an issue.

    • @meldungenausderforschung6222
      @meldungenausderforschung6222 2 года назад +1

      P.S. I managed to save it as Excel file and that worked. Odd.

  • @atb0007
    @atb0007 2 года назад +1

    hi guys, i am getting this error on google colab:
    TypeError Traceback (most recent call last)
    in ()
    1 import json
    2 channel_stats = get_channel_stats(youtube, channel_id)
    ----> 3 channel_stats[0]['contentDetails']
    TypeError: 'NoneType' object is not subscriptable
    why am i getting this when i have done everything exactly the same

  • @rhea2811
    @rhea2811 6 месяцев назад

    Thanks a lot for the video can you help me to get 100k dataset using this python. Previous comment also stated that it cant mining 100k videos and maximum is at 20k. Do you have any solution or alternative ways?

  • @bloomerboi21
    @bloomerboi21 3 года назад +2

    Hey make sure you name your function like getNameSomeThing() instead of get_name_some_thing()
    Because , we have to use camel case for function according to pep-8 styling rules.
    It isn't an error. It's just a best practice.

    • @ClarityCoders
      @ClarityCoders  3 года назад +5

      if it's a 50 line script I don't over think pep-8 to be honest. building a software platform sure.

    • @ResistantLaw
      @ResistantLaw 2 года назад +1

      I thought Python prefers snake case over camel case.

    • @liesdamnlies3372
      @liesdamnlies3372 2 года назад +1

      @@ResistantLaw Quite. The OP is either taking the piss or hasn’t actually read PEP-8.
      “mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.”
      To the OP if you’re being serious: PEP-8 stresses consistency above all else.

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

    I did this today, 3 years later - The code is still working but some deprecation warnings. Interesting changes: 1. Dislike Count is allways 0 because it is not more public. MrBeast knows the number, you won't get it anymore. 2. I had to change the dimensions of 'Most Viewed Videos' to 'Billions of Views' and 'Most Video Reactions' to 'Millions of Reactions' 😉

  • @vamsiakula9860
    @vamsiakula9860 3 года назад +1

    failed to connect integration!

  • @pradiptahafid
    @pradiptahafid 2 года назад +1

    dislike does not exist anymore in 2022. just FYI

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

    Where is the girl from the miniature?🧐

  • @johnsmitchcpa
    @johnsmitchcpa 2 года назад +1

    *Hello World*

  • @AlexeySilichenko
    @AlexeySilichenko 2 года назад +1

    this is not an analytics, you clickbater.