Skip to content

Instantly share code, notes, and snippets.

@avrahamappel
Last active January 28, 2026 03:49
Show Gist options
  • Select an option

  • Save avrahamappel/fb11b7e2f8e8b3f004179fddadbea053 to your computer and use it in GitHub Desktop.

Select an option

Save avrahamappel/fb11b7e2f8e8b3f004179fddadbea053 to your computer and use it in GitHub Desktop.
Download TorahAnytime video
read tr_url && curl -I -s $tr_url | rg location | cut -d' ' -f2 | tr -d '\r\n' | read url && response=$(curl -s "$(echo $url | sed -E 's@(http.*)(www\.)?torah@\1api.torah@')") && video_url=$(echo "$response" | jq -r '.video_url') && title=$(echo "$response" | jq -r '.title') && extension="${video_url##*.}" && filename="${title}.${extension}" && curl "$video_url" -o "$filename"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment