Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

How with YouTube Data API v3 get created clips on own channel [closed]

$
0
0

Screenshot from https://www.youtube.com/feed/clips

How i can get a array of clips from this page "https://www.youtube.com/feed/clips" using YouTube Data API v3? Or tell me other solution for my problem, please.

I tried node.js using puppeteer, but I had some problems logging in to my Google account and waiting for the page to fully load in order to parse the information about the clips from the page.

this is an example of how I received information from the browser console.

contents = document.querySelector("#contents");            listClipsHTML = contents.querySelectorAll("#dismissible")            clips = [];            listClipsHTML.forEach(clipHTML => {                let clip = {};                clip.img = clipHTML.querySelector("yt-image img").src;                clip.link = clipHTML.querySelector("a#thumbnail").href;                clip.lenght = clipHTML.querySelector("#time-status #text").innerText                clip.viewed = clipHTML.querySelector("#metadata-line span:nth-child(1)").innerHTML                clip.title = clipHTML.querySelector("#video-title").text                clip.author = clipHTML.querySelector("#channel-name #text").title                clip.createdAt = clipHTML.querySelector("#metadata-line span:nth-child(2)").innerHTML                clips.push(clip);            });

Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>