Skip to content
/ vibepy Public

Vibepy is a Python script for playing a random video from a YouTube channel or playlist.

License

Notifications You must be signed in to change notification settings

Moskas/vibepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Vibepy

Vibepy is a Python script for playing a random video from a YouTube channel or playlist.

Dependencies

  • Python 3.6 or higher
  • scrapetube
  • mpv

Installation

  1. Clone the repository or download the source code
  2. Install the required dependencies
  3. Make the script executable using `chmod +x vibepy.py`
  4. Run the script using `./vibepy.py`

Usage

usage: vibepy.py [-h] [-i CHANNEL_ID] [-p PLAYLIST_ID] [-c] [-u]

A script to play random youtube video from a given channel/playlist

optional arguments:
  -h, --help            show this help message and exit
  -i CHANNEL_ID, --channel_id CHANNEL_ID
                        ID of the YouTube channel
  -p PLAYLIST_ID, --playlist_id PLAYLIST_ID
                        ID of the YouTube playlist
  -c, --continuous      If argument is present activates continuous playback mode
  -u, --update_cache    If argument is present updates the cache of the videos for the given channel/playlist
  -nv, --no-video       Play with only audio, no video

Examples

  • To play a random video from a YouTube channel:
./vibepy.py -i <channel_id>
  • To play a random video from a YouTube playlist:
./vibepy.py -p <playlist_id>
  • To play a random video from a YouTube channel or playlist in continuous playback mode:
./vibepy.py -i <channel_id> -c

./vibepy.py -i <playlist_id> -c
  • To update the cache of the videos for a given channel or playlist:
./vibepy.py -i <channel_id> -u

./vibepy.py -i <playlist_id> -u

About

Vibepy is a Python script for playing a random video from a YouTube channel or playlist.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages