Skip to main content

Fast, Unix-friendly CLI for fetching transcripts from Apple Podcasts

Project description

getscript

A fast, Unix-friendly CLI for fetching transcripts from Apple Podcasts. You don't need to transcribe much of anything nowadays because Apple is transcribing everything for us. 'getscript' lets you use the transcripts in a more human / text friendly manner. The idea behind getscript is to put the transcripts to use in a meaningful way.

For example - let's say you're curious about AI Slop as a podcast topic:

$ getscript --search "AI Slop" --list <removing list of 10 podcasts and their podcast id's> $ getscript 1000730374732 | claude -p "Summarize the top 5 Points"

Of course you can also export to TTML, JSON, markdown and run from cron if you want to schedule things.

PyPI CI License: MIT Python 3.10+

Install

pip install getscript

Or via Homebrew:

brew install outerbanks73/tap/getscript

Requires Python 3.10+. Apple Podcasts transcripts require macOS 15.5+ with Xcode CLI tools.

Quick Start

# Fetch from an episode URL
getscript "https://podcasts.apple.com/us/podcast/the-daily/id1200361736?i=1000753754819"

# Fetch from a bare episode ID
getscript 1000753754819

# Raw TTML XML output
getscript 1000753754819 --ttml

# Search Apple Podcasts interactively (requires fzf)
getscript --search "artificial intelligence"

Output Formats

Output formats are mutually exclusive (--json, --ttml, --markdown). The --timestamps flag can be combined with any format.

# JSON piped to jq
getscript EPISODE_ID --json | jq '.segments[].text'

# Markdown with timestamps
getscript EPISODE_ID --markdown --timestamps > notes.md

# Write to file
getscript EPISODE_ID -o transcript.txt

Search

# Search Apple Podcasts (requires fzf)
getscript --search "climate change"

# List results without fzf
getscript --search "topic" --list --limit 20

Stdin & Batch Processing

# Read episode ID from stdin
echo "1000753754819" | getscript -

# Batch process a list of IDs
cat ids.txt | xargs -n1 getscript --no-upload --quiet

# Disable upload via environment variable
GETSCRIPT_UPLOAD=0 getscript EPISODE_ID

# Silent file output for scripting
getscript EPISODE_ID --quiet --no-upload -o out.txt

Shared Transcript Library

Fetched transcripts are automatically submitted to voxlytranscribes.com for indexing and enrichment. To disable:

getscript EPISODE_ID --no-upload
GETSCRIPT_UPLOAD=0 getscript EPISODE_ID

Shell Completions

getscript --completions bash >> ~/.bashrc
getscript --completions zsh >> ~/.zshrc
getscript --completions fish > ~/.config/fish/completions/getscript.fish

Configuration

Config file: ~/.config/getscript/config.json

Key Type Default Description
output_format string text Default format: text, json, markdown, ttml
timestamps bool false Include timestamps in text output
search_limit int 10 Number of search results
no_upload bool false Disable shared library submissions
quiet bool false Suppress progress and upload status messages

Environment variables:

Variable Description
GETSCRIPT_UPLOAD Set to 0 to disable submissions
NO_COLOR Disable colored output

Precedence: config file < environment variables < CLI flags.

See examples/config.example.md for a full annotated reference.

How It Works

Compiles a small Obj-C helper that calls Apple's private AMSMescal framework (FairPlay DRM) to generate a bearer token. That token authenticates requests to the AMP API, which returns TTML transcripts. The token is cached at ~/.cache/getscript/apple_token for 30 days. This is the only open-source tool that can fetch Apple Podcasts transcripts programmatically.

Shared Transcript Library

Every fetch contributes to the shared library at voxlytranscribes.com. Submissions go through a quarantine pipeline: server-side re-fetch, content hash verification, and provenance tracking before promotion to the canonical library. See the technical docs for details.

Exit Codes

Code Meaning
0 Success
1 Runtime error (network, auth, missing transcript)
2 Usage error (bad arguments, unrecognized URL)
130 Interrupted (Ctrl-C)

Testing

87 tests across 9 modules. CI matrix: Python 3.10–3.13 on Ubuntu and macOS.

pytest -v

Contributing

See CONTRIBUTING.md.

Changelog

See CHANGELOG.md.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

getscript-0.15.0.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

getscript-0.15.0-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file getscript-0.15.0.tar.gz.

File metadata

  • Download URL: getscript-0.15.0.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for getscript-0.15.0.tar.gz
Algorithm Hash digest
SHA256 7b8c61bc5a21a856ccd55772670f80b283322668f0e08ebfcceb70ac7946ee9b
MD5 902cb216455cfbaf4555ce3e03b9b3d7
BLAKE2b-256 bd9b07c124963d577f9c1c942d394c88690c71994013c0a9bc598764e8daa4f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for getscript-0.15.0.tar.gz:

Publisher: publish.yml on outerbanks73/cli-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file getscript-0.15.0-py3-none-any.whl.

File metadata

  • Download URL: getscript-0.15.0-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for getscript-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc8a3d926292bbe02fc5b80b306947a43182e8fb3db406e73d99fc157b93bdc1
MD5 63a87de3cf108cff8714052359ae3982
BLAKE2b-256 bc398f79b3a992f6ddfe4af1281a41520b4a25bb216db1ba84d89a0bda112a8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for getscript-0.15.0-py3-none-any.whl:

Publisher: publish.yml on outerbanks73/cli-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page