An open API service indexing awesome lists of open source software.

https://github.com/jangler/ytool

Command-line interface to the YouTube data API
https://github.com/jangler/ytool

Last synced: about 1 month ago
JSON representation

Command-line interface to the YouTube data API

Awesome Lists containing this project

README

        

ytool
=====
A command-line interface to the YouTube data API.

Status
------
Alpha. Not much is implemented, and breaking changes may occur.

Installation
------------
Install or update via the [go command](http://golang.org/cmd/go/):

go get -u github.com/jangler/ytool

Usage
-----
**ytool**

Usage: ytool []...

A command-line interface to the YouTube data API. If not enough
command-line arguments are specified for a command, remaining arguments
are read from standard input.

For help regarding a specific command, see 'ytool -h'.

Commands:
playlist print the URLs of videos in a playlist
search print the URLs of resources matching a query
title print the title of a video or playlist at a URL

**ytool playlist**

Usage: ytool playlist

Print the URLs of the videos in the playlist at , up to a maximum
of 50 videos.

**ytool search**

Usage: ytool search []... ...

Search YouTube for (joined by spaces if multiple arguments are
given) and print the URLs of the top matches in descending order by
relevance.

Options:
-n=1: maximum number of results, in the range [0, 50]
-type="video,channel,playlist": restrict search to given resource types

**ytool title**

Usage: ytool title

Print the title of the video or playlist at .

Examples
--------
$ ytool search -type=video ilkae | tee >(ytool title)
https://youtube.com/watch?v=tCIJPYB3xUU
Ilkae - Ampersand
$ ytool search -type=playlist can future days | ytool playlist
https://www.youtube.com/watch?v=VbAmpn-_yEk
https://www.youtube.com/watch?v=7za3-tbYtPU
https://www.youtube.com/watch?v=Rac1sLmyIPc
https://www.youtube.com/watch?v=ThV4wwYSvHY

License
-------
Public domain.