youtube:download_a_youtube_video
Differences
This shows you the differences between two versions of the page.
youtube:download_a_youtube_video [2016/07/10 19:19] – created peter | youtube:download_a_youtube_video [2019/12/04 22:48] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Youtube - Download a Youtube video ====== | ||
- | Youtube used to create temporary files in /tmp whenever a video was watched. | ||
- | |||
- | </code bash> | ||
- | cp / | ||
- | </ | ||
- | |||
- | |||
- | However, newer versions of flash (since | ||
- | |||
- | The following bash script allows one to download a youtube video. | ||
- | |||
- | <code bash> | ||
- | #!/bin/bash | ||
- | # | ||
- | # Download Youtube Video | ||
- | # | ||
- | # Two arguments | ||
- | # $1 Youtube URL | ||
- | # $2 You name for the video | ||
- | # | ||
- | |||
- | wget -c --no-check-certificate --user-agent="" | ||
- | sed ' | ||
- | awk '/ | ||
- | sed -n "/ | ||
- | sed -e :a -e ' | ||
- | sed -e " | ||
- | wget -c --no-check-certificate --user-agent="" | ||
- | </ | ||
- | |||
- | After putting in in a file and making it executable just go get your YouTube url and fire off the download. | ||
- | |||
- | <code bash> | ||
- | ./ytd.sh ' | ||
- | </ | ||
- | |||
- | This will make the file keycat.flv in your dir. Use a recent VLC or Mplayer to play the file. | ||
- | |||
- | Its very likely that this script will be out of date (broken) soon but hopefully it will be a good blueprint for anyone else in the future. |
youtube/download_a_youtube_video.1468178380.txt.gz · Last modified: 2020/07/15 09:30 (external edit)