DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: ytsearch - A command line youtube searcher / streamer / downloader  (Read 29,626 times)

Sjc1000

  • Member
  • Joined in 2012
  • **
  • Posts: 23
    • Participated in NANY Challenge Three Times
    • Linux User
It's that time of the year again huh? Well, here goes.

Application Name ytsearch
Version 0.3.7
Short Description A commnad line youtube searcher / streamer / downloader
Supported OSes Linux, maybe others
Web Page https://gitlab.com/sj1k/ytsearch
Download Link https://gitlab.com/sj1k/ytsearch#installing
System Requirements
  • Python3
  • mpv (or another media player that can handle streams)
Author Me!


Description
This program is a simple command line UI interface for a youtube search and streamer.
You can listen to youtube by playing only audio (This option does not get the video resource, so its lighter for bad connections) or watch it with video and audio.
It also supports downloading via the program.

Features
See: https://gitlab.com/sj1k/ytsearch#todo-list-roadmap

Screenshots
search_results.png
search_results_cached.png
search_results_playing.png

Usage
https://gitlab.com/sj1k/ytsearch#index
« Last Edit: September 16, 2017, 12:16 AM by Sjc1000 »

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: ytsearch - A command line youtube searcher / streamer / downloader
« Reply #1 on: September 16, 2017, 10:20 AM »
Oh Linux OS !

Wonderful !

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: ytsearch - A command line youtube searcher / streamer / downloader
« Reply #2 on: September 16, 2017, 04:09 PM »
Oh Linux OS !

Wonderful !

yes, I'm envious again..
Tom

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,827
    • Participated in NANY Challenge Eight Times
    • Cody Award
Re: ytsearch - A command line youtube searcher / streamer / downloader
« Reply #3 on: September 16, 2017, 06:18 PM »
Looks useful. :Thmbsup:

Is this like a 2.0 of your last year's NANY release? What's the difference between the two?

Sjc1000

  • Member
  • Joined in 2012
  • **
  • Posts: 23
    • Participated in NANY Challenge Three Times
    • Linux User
Re: ytsearch - A command line youtube searcher / streamer / downloader
« Reply #4 on: September 16, 2017, 11:33 PM »
They are rather similar, However this is another project.

The other one was made to keep track of certain youtube users' videos. This one doesn't do that. It just searches youtube for queries you input.

This one is a whole lot more mature too, you can listen / watch the video right from the program, the other one you couldn't.

edit: Wonder over to the IRC if you want a more in-depth discussion of the differences. ;)

cschw

  • Supporting Member
  • Joined in 2012
  • **
  • Posts: 50
Re: ytsearch - A command line youtube searcher / streamer / downloader
« Reply #5 on: September 22, 2017, 03:23 AM »
I installed this on an Ubuntu MATE machine.  Very nice!  :up:

A couple of things that I had to do before using this:  1) find ytsearch (wasn't automatically added to path) and 2) dig into the source to find where cache was kept.  The keybindings are fairly intuitive, but a couple didn't work as expected...still getting used to it.

I really like how quickly this can search and download videos.  And it's extremely easy to queue and play cached videos.  However, this seems like something I would use primarily to build an audio library.  It's simple enough to play audio from the cached videos, but space could be saved by just downloading audio instead of video.

If you are taking wish list requests, it would be nice to be nice to have a keybinding for downloading audio.

Thanks for sharing this!  :Thmbsup:

Sjc1000

  • Member
  • Joined in 2012
  • **
  • Posts: 23
    • Participated in NANY Challenge Three Times
    • Linux User
Re: ytsearch - A command line youtube searcher / streamer / downloader
« Reply #6 on: October 07, 2017, 10:24 PM »
I installed this on an Ubuntu MATE machine.  Very nice!  :up:

A couple of things that I had to do before using this:  1) find ytsearch (wasn't automatically added to path) and 2) dig into the source to find where cache was kept.  The keybindings are fairly intuitive, but a couple didn't work as expected...still getting used to it.

I really like how quickly this can search and download videos.  And it's extremely easy to queue and play cached videos.  However, this seems like something I would use primarily to build an audio library.  It's simple enough to play audio from the cached videos, but space could be saved by just downloading audio instead of video.

If you are taking wish list requests, it would be nice to be nice to have a keybinding for downloading audio.

Thanks for sharing this!  :Thmbsup:

Ill certainly think about having the option to download as audio. It is a good idea.

You can rebind all the keys at will, so feel free to mess with the settings ( press ? while in the program ) the cache location is also in the settings there.
If it complains you don't have any editor set you can close the program then edit  ~/.ytsearch/settings.yaml  to get the same effect.

Sjc1000

  • Member
  • Joined in 2012
  • **
  • Posts: 23
    • Participated in NANY Challenge Three Times
    • Linux User
Re: ytsearch - A command line youtube searcher / streamer / downloader
« Reply #7 on: October 09, 2017, 02:58 AM »
Alright, I've implemented your download as audio idea into the development branch of ytsearch.

It attempts to download the best audio version. Sometimes downloading a webm with no video. Still a huge save on space.

cschw

  • Supporting Member
  • Joined in 2012
  • **
  • Posts: 50
Re: ytsearch - A command line youtube searcher / streamer / downloader
« Reply #8 on: October 12, 2017, 04:17 AM »
Full confession:  I'm more of an end user than a coder--and not versed on how to install the dev branch from GitLab.  I'm looking forward to trying the download as audio, and will do some digging into what it will take to test the development branch.

Thanks for the heads-up on customizing the editor in the settings.yaml file.  I'll give that a spin as well.

Sjc1000

  • Member
  • Joined in 2012
  • **
  • Posts: 23
    • Participated in NANY Challenge Three Times
    • Linux User
Re: ytsearch - A command line youtube searcher / streamer / downloader
« Reply #9 on: October 12, 2017, 11:10 PM »
I should have probably told you how to get the development branch. You can download it from  https://gitlab.com/sj1k/ytsearch/repository/develop/archive.zip ; /  https://gitlab.com/sj1k/ytsearch/repository/develop/archive.tar.gz ; chose whichever format most suits you.

Extract it and you will need to run  pip3 install . --user  in the root directory of the project (the directory with the setup.py) to install the dev version. (This will install it over your current version)

Original address: https://www.donationcoder.com/forum/index.php?topic=44351.0