Giter VIP home page Giter VIP logo

//jangan lupa subscribe youtube ShareID function statsTitle() {

//Video info video target var videoID = 'raszHvtAvGk'; //https://youtu.be/pL4TLEbIsAA var part = 'snippet,statistics'; var params = {'id': videoID}; var response = YouTube.Videos.list(part, params); var video = response.items[0];

//info channel anda var channelID = 'UCS3mfHRgF2-xX20GgBtj8dQ' ; //https://www.youtube.com/channel/UCxaaULLk6UCnRl5VKRc7G0A var part2 = 'snippet,contentDetails,statistics'; var params2 = {'id': channelID}; var response2 = YouTube.Channels.list(part2, params2); var channel = response2.items[0];

//Video title variables var videoViews = video.statistics.viewCount; var videoLikes = video.statistics.likeCount; var videoDislikes = video.statistics.dislikeCount; var videoComments = video.statistics.commentCount; var channelSubs = channel.statistics.subscriberCount; var channelVideos = channel.statistics.videoCount; var channelViews = channel.statistics.viewCount;

//Set Video Title incoportating "Video title variables" //contoh //var videoTitle = 'This channel has ' + channelSubs + ' subscribers, ' + channelVideos + ' videos and ' + channelViews + ' views!'; //var videoTitle = 'judul ' + videoViews + ' views, ' + videoLikes + ' likes, ' + videoDislikes + ' dislikes, and ' + videoComments + ' comments!'; var videoTitle = 'vudeo ini di tonton ' + videoViews + ' kali';

//Update youtube video video.snippet.title = videoTitle; try { YouTube.Videos.update(video, part); } catch(e){} }

Dilzpx01 's Projects

games-wabot-md icon games-wabot-md

Mirror from https://github.com/BochilGaming/games-wabot/tree/multi-device

lord_md icon lord_md

Whatsapp Bot 💫 || Lord Bot MD 🌪️ || Made By Letta-Sama🌹AmmarBN

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.