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
- Host: GitHub
- URL: https://github.com/jangler/ytool
- Owner: jangler
- License: unlicense
- Created: 2015-07-26T04:06:20.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-27T13:53:31.000Z (almost 10 years ago)
- Last Synced: 2025-01-27T13:49:43.260Z (3 months ago)
- Language: Go
- Homepage:
- Size: 121 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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=ThV4wwYSvHYLicense
-------
Public domain.