Bash: Print YouTube RSS Feed: read, input, printf

Use Unix shell to print YouTube RSS feed URL

nick3499
1 min readNov 28, 2017

After executing Bash script, user is prompted to input YouTube channel hash, then URL for Youtube RSS feed prints in Unix shell. As demonstrated below:

# bash youtube_feed.sh 
Paste YouTube channel hash: UCJyVgjrb0nQFdxL-3X98SfA
https://www.youtube.com/feeds/videos.xml?channel_id=UCJyVgjrb0nQFdxL-3X98SfA

The YouTube channel hash is easy to find. The following link example displays the type of URL which contains the channel hash, e.g. UCJyVgjrb0nQFdxL-3X98SfA

https://www.youtube.com/channel/UCJyVgjrb0nQFdxL-3X98SfA/videos

--

--

nick3499
nick3499

Written by nick3499

coder of JavaScript and Python

No responses yet