Youtube view count script.

Falcon5

Newbie
Joined
Jul 31, 2018
Messages
24
Reaction score
6
Hello, fellas,

Now quite experienced with programming. However, I have a task of finding views of the youtube video and writing them down once a month, so the change over time can get measured. Sounds quite stupid and it actually is. However, no way I am doing this one by hand. So the question would stand:
What is the best method to scrape view count from different youtube videos and type them in one sheet column?

I do have all the links (Youtube video ID) and I guess I should pick the view from the youtube API. Since I am kinda fresh on this. Could you guys lead me on the right path maybe?
Python and getting the views straight from html would work?

Maybe there is a script ready to go and my search keyword failed?

Thank you, Sirs.
 
Use Google for this kind of script. I am sure you will find a solution. Best way will be to use YouTube api.
 
Use Google for this kind of script. I am sure you will find a solution. Best way will be to use YouTube api.
Thanks, will look into that more!
 
Youtube gives 1 million quota for new projects. for video views you need "statistics" option. it costs 2 quota.

Using youtube libraries are kind of needless if you are using php, python etc.

googleapis.com/youtube/v3/videos?part=statistics,id&id=YOUTUBEID1,YOUTUBEID2&key=YOURAPIKEY

should fulfill your needs.
 
if your low-level tech try maybe using parsehub's gui to build a scraperbot to get the views from youtube video url and just have it run once a month
 
You can use pretty much anything honestly. Python, PHP, C#/VB. Depending on the amount of video you have to check, you might need a proxy or two to have lower requests on the IPs. Using RegEx, it can be done in a few lines.
 
You can use pretty much anything honestly. Python, PHP, C#/VB. Depending on the amount of video you have to check, you might need a proxy or two to have lower requests on the IPs. Using RegEx, it can be done in a few lines.
If you can do VBA and selenium you can write a simple 10-15 line of code to get the view from the web page itself... I have one like that which I developed and used before
 
Back
Top