Kang-Kyu Lee

I love hamburgers. I will share my experiences with Ruby and YouTube
January 14, 2026

How to auth YouTube

Hello, it's me. For authentication - we always call it "authentication" when login to API. I think it's because we get authenticated to use the endpoints by that. 🤔 When make any request with a HTTP verb and an address (and more), you are able to send HTTP header together. And usually the access_token is in the header because it's kind...
Read more
January 10, 2026

How to check if an item is a private video in a playlist

Hello. Today, I continue from "{\n \"kind\": \"youtube#playlistItemListResponse\",\n \"etag\": \"s6QcrvkzWWOAgqLpxGuOTwmYE-s\",\n \"items\": [\n {\n \"kind\": \"youtube#playlistItem\",\n \"etag\": \"bXmH501ZhdvFDcAuhNF1e2hnFTM\",\n \"id\": \"UEx3akRSUDVaWF9NRU9FLXpPdVRJTU9WSDBWT1lnR182OS41NkI0NEY2RDEwNTU3Q0M2\"\n }\n ],\n \"pageInfo\":...
Read more
January 10, 2026

How to find playlist item id

Hello. In my previous post, I talked about deleting an item from your playlists. Before removing any item, the computer should know what to remove. By the way, we are willing to request a computer to do something through the internet. In case you know channel id, you can get all the playlist ids. In case you know playlist id, then you ...
Read more
January 10, 2026

YouTube Automation #1

Have you ever managed 100 playlists with 1000 videos each? And have you tried to remove dead videos from the playlists? 😁 Here's a good solution: YouTube Data API PlaylistItems: Delete Automate your manual work with it. I will show you how to from YouTube Data API documentation into a working application. First of all, you will do this...
Read more
April 15, 2025

docker on Heroku (with your Go project)

Simple as this: heroku create app-name-here heroku stack:set container git push heroku master Now you will get an error that you need `heroku.yml` file. Make a heroku.yml file in the same directory of `Dockerfile` (which is normally just base directory) build: docker: web: Dockerfile In this case, there is no "run" part in this heroku....
Read more
February 6, 2025

Ruby detect

detect can find one fits some condition, in a list find can detect one element comes first for that "find" is "detect" in Ruby language For example: numbers = [0, 4, 2, 3, 9, 8] numbers.find {|n| n.odd? } # first odd number in the list is 3 #=> 3 numbers.find {|n| n > 10 } # there is no number greater than 10 in the list #=> nil See yo...
Read more
December 11, 2024

Ruby each, and more

Ruby has "each" and it does something for each item in a list of items. animals.each do |animal| animal.speak end #=> ["quack", "miaow", "wuf"] one more thing, "reduce" aka "inject" [1,2,3].reduce do |memo, item| memo + item end #=> 6 See you next time!
Read more
November 22, 2024

Ruby, map and collect

Ruby is human friendly because for example there are.. "map" and "collect" they do the same thing. There's more than one way of doing the same thing, in Ruby. Another example, "detect" and "find". Guess what? They do exactly the same thing. I think these methods (and other aspects) make Ruby human-friendly. What do you think? See you n...
Read more
November 19, 2024

install Ruby

For Ruby you should install at first, and it's not hard. First, install homebrew from the terminal. Second, install rbenv. And then install Ruby with rbenv command: "rbenv install 3.2.6" Now you installed Ruby version 3.2.6! See you next time!
Read more
November 3, 2024

Ruby itself

in Ruby, there's this "itself" method. If you say thing1.itself, it returns the value of thing1. Yes, it is used sometimes, for example group_by(&:itself) will group a list by element itself! That's it for today. See you next time!
Read more
October 31, 2024

Ruby shorts 2

in Ruby, everything has its "class" Even the numbers. 1.class will give you Integer. One more thing. You can make your own class with the "class" keyword. class YourClass end yours = YourClass.new # remember "new" here yours.class will return "YourClass" See you next time!
Read more
October 31, 2024

Ruby shorts

In Ruby coding, there's this "@" and it does passing something (a variable to another method). Let me show you what I mean. Here's an example in Ruby on Rails. When you have that "@" in the code, it shows the number on the screen, as you see. def show @post = Post.find(params[:id]) end <%= @post %> If I remove it from the same code, it...
Read more
August 30, 2024

Please learn Python

Let's learn Python! It will be an exciting journey from quick data visualization to artificial intelligence.
Read more