Skip to content

Mizuho32/youtube-setlist-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collect singing stream timestamps on YouTube

Usage

First, prepare your YouTube account’s API KEY.

Search channel. When channels use custom url like youtube.com/c/some_name that is not id.

$ bundle exec ./setlist.rb --search "KANADE MiMi" -k key.txt

Init.

$ bundle exec ./setlist.rb --init -u "https://www.youtube.com/channel/xxxxxxxxxxxx" -k key.txt

Make setlist. selecting index 0 to 2 videos from "singing streams" which are made from all uploads by matching "歌枠" or "singing stream" words and then match id by /-R3/. Force overwrite existings.

$ bundle exec ./setlist.rb --make -u "https://www.youtube.com/channel/xxxxxxxxxxxx" -k key.txt -r "0..2" -i '-R3' -d list.csv -f
$ bundle exec ./setlist.rb --make -u "https://www.youtube.com/channel/xxxxxxxxxxxx" -k key.txt -d list.csv -j path/to/my-project-xxxxxx.json

list.csv is song name and artist list. Order is name, artist.

name,artist
花に亡霊,ヨルシカ
...

Update. (init first)

$ bundle exec ./setlist.rb --update -u "https://www.youtube.com/channel/xxxxxxxxxxxx" -k key.txt

Apply.

$ bundle exec ./setlist.rb --apply -u "https://www.youtube.com/channel/xxxxxxxxxxxx" -k key.txt -j path/to/my-project-xxxxxx.json

For develop

Setup jupyter

Run.

$ . env.fish
$ jupyter lab

Edit like below.

jupyter/data/kernels/ruby/kernel.json
{"argv":["bundle", "exec", "iruby","kernel","{connection_file}"],"display_name":"Ruby 3.0.2","language":"ruby"}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published