lfm2ytm generates a YouTube (Music) playlist consisting of hot tracks (i.e., most played songs) in Last.fm.
- Generate a YouTube (Music) playlist automatically based on playcounts in Last.fm
- Try to search art tracks in YouTube
- Only print hot tracks in Last.fm running with
--dryrun
./lfm2ytm \
-secretjson=./client_secret.json \
-fromdate=2017-07-11T00:00:00+09:00 \
-todate=2017-07-18T23:59:59+09:00 \
-region=JP \
-lfmmax=10 \
tsubasaogawa
Results
✔ Start A Fire - John Legend - Topic (3 times; id=dwTRnPtpSSk)
✔ Herman’s Habit - Justin Hurwitz - Topic (2 times; id=zwiy2EfS0GY)
✔ Planetarium - Justin Hurwitz - Topic (2 times; id=qV1KxmGDkk8)
✔ City Of Stars (Humming) - Justin Hurwitz - Topic (2 times; id=AR1YYN4-qYE)
✔ 'City of Stars' (Duet ft. Ryan Gosling, Emma Stone) - La La Land Original Motion Picture Soundtrack - Interscope Records (2 times; id=GTWqwSNQCcg)
✔ 2 Unlimited - No Limit (RM Radio Edit) - Dove White (1 times; id=q-6EgZZHuds)
✔ Chumbawamba - Tubthumping - ChumbawambaVEVO (1 times; id=2H5uWRjFsGc)
✔ CUBIC 22 / NIGHT IN MOTION (K-Groove Mix) - DancemaniaMania (1 times; id=DN8_52mDDw4)
✔ Dj Miko - What's Up 2000 - Saifam Music (1 times; id=lG86oPotqRU)
✔ Green Flower Street - Donald Fagen - Topic (1 times; id=SoHyj8i8Ywo)
https://developers.google.com/youtube/v3/getting-started
https://developers.google.com/youtube/v3/guides/auth/installed-apps
- Choose "Desktop Application"
See the example.
See command_help.md
- Fork this repository.
- Chdir and
go mod tidy
- Do implements.
- Run
LASTFM_API_KEY=<your lastfm api key> go run *.go [options]
- Create a pull-request.