Tips Tricks Tutorials

WEB-NES-BAY

Learn Tips and tricks on Linux, Hacking, linux, PHP, Perl, Web, Hardware

bookmark bookmark
WEBNESBAY On July - 26 - 2009

Downloading youtube videos is very easy without any software. Here is the procedure below

Step 1: Find the video you want to download and wait for it to completely finish loading.
Step 2: Minimize your browser (do NOT close it, some browsers delete the temp directory upon closing), and navigate to the directory /tmp
Step 3: Drag the flash file onto your desktop. Voila!

This procedure works with almost every browser. I have tried it in firefox and worked

Also, here is the shell script for the above steps

#!/bin/bash
flash=$(ls -t /tmp/Flash* | head -n 1)
destination=$(find ~/.mozilla -name sessionstore.js -exec sed ’s/.*title:”\([^"]*\).*selected.*/\1/’ {} \;)
echo “waiting for download to finish …”
size=$(du $flash)
while sleep 5s; do
if [ "$size" != "$(du $flash)" ]; then
size=$(du $flash)
continue
else
break
fi
done
cp “$flash” “$HOME/${destination////%2f}.swf”

You have to run the above script after loading of entire video. After running the above script you will find the video in your home directory

Related posts:

  1. How to enable Auto Login in Ubuntu Linux
  2. Download and play YouTube video on the Mac computer
  3. Compiling mplayer with multi-core decoding support in ubuntu linux
  4. Compare local and remote directories in ubuntu
  5. DVD Playback in Linux
  6. Install Google gears for firefox 3.5 in Jaunty Linux
  7. Integrate YouTube with your phpBB Forum
  8. Linux Keylogger in Ubuntu
  9. How to use Windows Key in Ubuntu Linux
  10. How to block websites in Ubuntu Linux
Categories: Linux

Comments are closed.