Updated Video with Replies kzbin.info/www/bejne/d2KsenyVebaIaqssi=_8-d4OpoIHpr2jJm
@Fallkhar4 ай бұрын
Thank you, man, you really made it work for me. My initial approach was HTML parsing with beautiful soup which proved to be very difficult because not all comments are loaded and I think google limits accessing that way as well.
@analyticswithadam4 ай бұрын
Glad it helped!
@Fallkhar4 ай бұрын
@@analyticswithadam Yeah, it really helped me get into the KZbin API. I've now expanded the code to get all the comments from an entire KZbin channel by using the uploads playlist.
@al-naqeep6 күн бұрын
Can I use Python library youtube comment download
@Fallkhar6 күн бұрын
@@al-naqeep You mean like the code I wrote?
@L_Only_Cans11 ай бұрын
Great video! Do you know how much of your quota this used up or roughly how many comments you can extract per day with the current call limit quota? Thanks again!
@analyticswithadam11 ай бұрын
Each call is 1 . Quota is 10k per day. A million comments perhaps but haven’t tried to max it out.
@L_Only_Cans11 ай бұрын
@@analyticswithadam excellent thanks
@yuxrazafar85329 ай бұрын
I want to extract the comments from a playlist. do i have to gather all the IDs manually or I can automate it through some API?
@analyticswithadam9 ай бұрын
I have a video on the way to do just that.. Here is the code in advance, pulls the replys as well. github.com/analyticswithadam/Python/blob/main/Pull_all_Comments_and_Replies_for_KZbin_Playlists.ipynb
@yuxrazafar85329 ай бұрын
Oh Thank you so much!@@analyticswithadam
@oitik10 ай бұрын
Great video. I have a question i am doing a research where i need to scrape comments from a live stream. How can i do that can you help? because your code cannot scrape the live comments.
@JamesDeanDesigns10 ай бұрын
This really helped me out. Thank you
@analyticswithadam10 ай бұрын
Awesome 🙌
@SabineWildemann-l9q10 ай бұрын
Hi Adam, Thanks for this tutorial series, very helpful! If i don't have the IDs of the videos but a phrase I'd like to analyse (like "Die letzte Generation"), how can i proceed based on your code? Thanks for your time!
@analyticswithadam10 ай бұрын
Would this phrase be in the video title?
@SabineWildemann-l9q10 ай бұрын
@@analyticswithadamyes
@04mdsimps7 ай бұрын
Really nice work. Good stuff
@vbrant270510 ай бұрын
thanks for the tutorial !!! btw is there any daily limit for using the API ? and also how much does the API cost ? I'm planning to build a model for sentiment analysis based from yt comments of a movie trailer. I want to use Oppenheimer trailer as the data source. The trailer has approximately 32 thousand comments.
@analyticswithadam10 ай бұрын
The limit is 10,000 a day per request, I think this is one request per 100 comments so you should be good but let me know if you get them all. The API is free, I show how to get setup in the comment in the description.
@vbrant270510 ай бұрын
@@analyticswithadam thanks for the reply. Okay so if the limit is 10.000 per day, how can i scrapped the rest of it in the next day so that the script doesn't scrapped the same 10.000 comments again? How can i modify the script for that purpose?
@analyticswithadam10 ай бұрын
@@vbrant2705 1 credit should pull 100 comments so I think you will be fine, if it doesn't. The pageToken=nextPageToken should store the last page token used so you can start with that Token next time
@vbrant270510 ай бұрын
@@analyticswithadam okay. I will try it. Thank you
@vbrant27059 ай бұрын
@@analyticswithadam hello. I got some news. So i've tried to do some scraping but i only got 22k instead of 32k. When i looked at my api stat, i'm only using 225 request out of 10k. Why can't i get the rest of the comments ? many thanks.
@julianebrito57882 ай бұрын
Hi from Brazil, I loved the video. I would really like to know how to extract it from the KZbin chat
@robosergTV5 ай бұрын
Why would you do while 1==1 and not simply while True? Just for jokes?
@analyticswithadam5 ай бұрын
Its a weird one. Its an infinite loop until the Try Except block breaks you out of it. So the while loop isn't evaluating anything. Nothing is ever going to be False.
@eig-datos21 күн бұрын
You are the best, thanks soo muuchhhh
@analyticswithadam7 күн бұрын
Glad it helped
@HauntedRabbit-x7j9 ай бұрын
Very useful video. Thank you for sharing sharing knowledge.
@omerfaruksezeerr11 ай бұрын
hello, I just want to pull the comments on a yotube channel, how can I do this, do I need to do a separate process for each video or is this possible only for a yotube account please help me thank you very much
@analyticswithadam11 ай бұрын
Hi Omer, What you need to do is collect the video ids and them put them in the for loop of the code discussed at the end of the video. Two ways to do this. 1. Manually open the video and pull the codes. For example the url of this video is kzbin.info/www/bejne/ZnfXlHugfpqfo9k&lc=UgwJNvziZkqzm3m__J94AaABAg the code is after the 'v='. 2. Use the youtube API to pull all the codes. . Instructions in the url below. developers.google.com/youtube/v3/docs/videos/list
@mohamedmowena3538 ай бұрын
Can u make a video in how to scrape the captions/subtitle. Thank u very much.
@zeha99710 ай бұрын
Is there any way to extract comment after translating in english? I want to extract only english comments.
@analyticswithadam10 ай бұрын
I don’t think anything detects the language in the api but I’m sure Python has a package to classify the languages then you can filter
@analyticswithadam10 ай бұрын
Try this medium.com/swlh/language-classification-using-machine-learning-in-python-fa0768daea67
@BECEOOYaashuDave9 ай бұрын
What if i want to extract the replies as well?What should we do?
@analyticswithadam8 ай бұрын
Have a video coming on Tuesday that includes the replies, here is the script …github.com/analyticswithadam/Python/blob/main/Pull_all_Comments_and_Replies_for_KZbin_Playlists.ipynb
@emmanuel.alcantara11 ай бұрын
how can I extract for example the 967 comments to a txt file?
@analyticswithadam11 ай бұрын
Pull the dataframe to a csv using python.. Are you using Google Colab?
@emmanuel.alcantara11 ай бұрын
@@analyticswithadam yes
@analyticswithadam11 ай бұрын
@@emmanuel.alcantara First answer here. stackoverflow.com/questions/53898836/export-dataframe-as-csv-file-from-google-colab-to-google-drive
@fuadanjasmara15 күн бұрын
Good video but I have a problem in dev number. How you get that?
@analyticswithadam15 күн бұрын
Dev number?
@fuadanjasmara14 күн бұрын
@@analyticswithadam yes
@analyticswithadam14 күн бұрын
@@fuadanjasmara Sorry just looked at the code, Its a API Key you need for KZbin, its free but you need to go to Google Cloud to generate.Go to 1.50 of this video for a walkthrough on how to get it. kzbin.info/www/bejne/Z3zad3mYlNminLs
@analyticswithadam14 күн бұрын
@@fuadanjasmara Ive made a few videos on the API the first one had the instructions and I skipped on this one
@fuadanjasmara14 күн бұрын
@@analyticswithadam I see. Thanks, Adam.
@christinapachaki35546 ай бұрын
great work, can someone please share with me the video that demonstrates the API KEy?
@analyticswithadam6 ай бұрын
Have it in the follow up video too How to Extract all KZbin Comments and Comment Replies from a Playlist kzbin.info/www/bejne/d2KsenyVebaIaqs
@joysarkar-hb4tj6 ай бұрын
how i get or save file of these extract comments???
@analyticswithadam6 ай бұрын
You can pull the dataframe out of a notebook as a CSV
@mrpepeluis9506 ай бұрын
Chido one, great video!
@gsonbiswas976511 ай бұрын
Does it extract the nested comments?
@analyticswithadam11 ай бұрын
It does not
@sarvarbekfozilov98299 ай бұрын
#question hi adam thank for tutorial. currently i need scrap comments from instagram and facebook how can i do that?
@analyticswithadam9 ай бұрын
No idea at the moment but I’ll have a look..
@damochi10011 ай бұрын
does exactly what it says
@analyticswithadam11 ай бұрын
Sure does
@zeha99710 ай бұрын
how to extract these comments in excel?
@analyticswithadam10 ай бұрын
If you are using Google colab If the dataframe is named something other than df change all the 'df' below to whatever its called from google.colab import files df.to_csv('df.csv', index=False) files.download('df.csv')
@zeha99710 ай бұрын
@@analyticswithadam thanks
@ResearchonSihrАй бұрын
@@analyticswithadam Hi, thank you for your tutorial. I'm not familiar with Google colab so how to extract the comments in a txt or csv file ? I don't really understand what you said in reply to zeha997. Can you elaborate please? Thank you in advance