solrevdev.ytx
1.0.1
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global solrevdev.ytx --version 1.0.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local solrevdev.ytx --version 1.0.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=solrevdev.ytx&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package solrevdev.ytx --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ytx
— YouTube → JSON (title, description, transcript)
ytx
prints a single JSON object for a YouTube URL:
{
"url": "https://youtube.com/…",
"title": "Video title",
"description": "Video description…",
"transcriptRaw": "Full transcript as one string…",
"transcript": "- [00:03](https://www.youtube.com/watch?v=...&t=3s) First line\n- [00:07](...) Next line"
}
- Prefers English captions; falls back to any available.
- Markdown transcript with timestamped links.
- Works on macOS, Windows, Linux (.NET 8/9).
Install
dotnet tool install -g solrevdev.ytx
# upgrades:
dotnet tool update -g solrevdev.ytx
Usage
ytx "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
# or:
echo '{"url":"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}' | ytx
JSON fields
url
— input URL.title
— video title.description
— full description.transcriptRaw
— all caption text, normalized.transcript
— Markdown list with[HH:MM(:SS)](yt?t=Ns) text
.
If captions are unavailable, transcriptRaw
is empty and transcript
states why.
Exit codes
0
success1
unexpected error2
usage error (missing/invalid URL)
License
MIT
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.