Difference between revisions of "Script untuk mencuri file youtube di /tmp"

From OnnoWiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
vi curiyoutube.sh
+
vi curiyoutube.sh
  
 
  #!/bin/bash
 
  #!/bin/bash
Line 24: Line 24:
 
* Jalankan youtube web yang anda inginkan sampai selesai
 
* Jalankan youtube web yang anda inginkan sampai selesai
 
* Jalankan script
 
* Jalankan script
 +
  
 
  ./curiyoutube.sh
 
  ./curiyoutube.sh
 +
 +
 +
==Pranala Menarik==
 +
 +
* [[Multimedia di Linux]]
 +
* [[Tip Internet]]
 +
* [[Script untuk Download Youtube ke .avi]]
 +
* [[Youtube Downloader, Cara Cepat Download Film Dari Youtube]]
 +
* [[Download Youtube di Ubuntu 10.04]]
 +
* [[Download youtube ke .flv]]
 +
* [[Script untuk mencuri file youtube di /tmp]]
 +
 +
[[Category: Multimedia]]
 +
[[Category: Linux]]
 +
[[Category: Internet]]

Latest revision as of 19:22, 20 March 2012

vi curiyoutube.sh

#!/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"

Caranya:

  • Ubah permission
chmod +x curiyoutube.sh 
  • Jalankan youtube web yang anda inginkan sampai selesai
  • Jalankan script


./curiyoutube.sh


Pranala Menarik