A script to generate youtube playlist links given video urls (no youtube account needed)
Setup
- Have Node.js installed (any version higher than 6 should be fine)
- Run command
npm install -g mklist
and you are all set- To update to latest version anytime after installation, re-run above command
- To uninstall, run
npm uninstall -g mklist
- Unix may need
sudo
- Windows may need running cmd as admistrator
Usages example
mklist https://www.youtube.com/watch?v=xHu7qI1gDPA https://www.youtube.com/watch?v=2DrjQBL5FMU
will produce the url:
https://www.youtube.com/embed/xHu7qI1gDPA?playlist=2DrjQBL5FMU&rel=0&modestbranding=1
For above version, adding -l
or --loop
flag will crate looping playlist
If there is a file foo.txt
with content:
https://www.youtube.com/watch?v=xHu7qI1gDPA
https://www.youtube.com/watch?v=2DrjQBL5FMU
If on linux, running bash shell command : cat foo.txt | mklist
will output
https://www.youtube.com/embed/xHu7qI1gDPA?playlist=2DrjQBL5FMU