mps-youtube / yewtube

yewtube, forked from mps-youtube , is a Terminal based YouTube player and downloader. No Youtube API key required.
GNU General Public License v3.0
7.98k stars 643 forks source link

Interacting with the project programatically #1220

Closed ixns closed 1 year ago

ixns commented 1 year ago

This project is lovely to use.. Can it be called programmatically? Of course there is the "invoke" set of commands, but even still this requires that the program becomes interactive which prevents proper piping of the output to another file or program.

If the output of invoke commands could be piped out without getting interactive, we could leverage the search AND download capabilities of this project more effectively.

Issue / Suggestion

Users should be able to run the following command

yt /taylor swift > results.txt

and then taking the top result from that file, call

yt dlurl <url>

This way external programs can interact with yewtube and build with it.