Basic WGET Command to Login and Download File

GNU Wgetfree utility for non-interactive download of files from the Web.

suppossed you’re a member of some site [ex: http://www.doesnt-exist.com]. you want to download some file from there. but first, you need to login. the question is, how to download file from site that ask user to login first, using wget? i’ll show you how.

first, we need to get cookies from the site, then save it to file [ex: cookies.txt]. we simulate the login process using wget.

wget --keep-session-cookies --save-cookies cookies.txt --post-data 'username=foo&password=bar' http://www.doesnt-exist.com/login/index.php


after we got the cookies file, the next step is, we start to download file. don’t forget to load the cookies that we’ve saved before.

wget --load-cookies cookies.txt -p http://www.doesnt-exist.com/some_directory/the_other_directory/some_file.ext -t 0 -c


Hints:

  • you need to know the login url. in this example i’m using [http://www.doesnt-exist.com/login/index.php]
  • you need to know the variable (text field) name for username and password. you can find it by ‘view source‘ the login page.
  • you need to know exactly the file’s url that you want to download.

good luck. hope it helps. :mrgreen:

Tags: ,

Leave a Comment

YouTube Downloader Reloaded

YOUTUBE DOWNLOADER reloaded! Save your favourite YouTube video using this YouTube Downloader and watch it offline. No need to Streaming from YouTube again. Direct Download from YouTube.

You can choose the video format you like. For HQ (High Quality) Video, you can Download MP4. Do you need Small Size Video to play it later on your Mobile Device? If you do, Download 3GP. Default one is FLV Video, average in both Quality and Size.

Any comments or suggestions would be appreciated.

Tags: ,

Leave a Comment

Java plugin is missing after update Firefox

if you ever encounter this problem, you may try this. all you have to do is linking the plugin file [libjavaplugin_oji.so] from the Java JRE plugin’s directory, into the Firefox plugin’s directory.

cd /usr/lib/firefox/plugins
sudo ln -sv /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so

restart your Firefox. hope it helps.. :mrgreen:

Tags: , ,

Leave a Comment

HJSplit for Linux

HJSplitFreeware multi-platform file splitters and joiners.

buat yg mengalami masalah ketika menginstal HJSplit di kompi linuxnya, mungkin bisa ngikutin post ini.. :cool:
[Read the rest of this entry...]

Tags: ,

Comments (4)

Nyari Nomer UUID dari Hardisk

UUIDUniversally Unique Identifier.

kebanyakan Linux Operating System (OS) yang sekarang, seperti Ubuntu, telah menggunakan nomer UUID untuk nge-mount media (hardisk). udah ga pake nama yang seperti biasanya (contoh: /dev/sda1, /dev/hda1, dll). pengertian UUID sendiri adalah Universally Unique Identifier. jadi, meskipun kita rubah posisi slot hardisk, OS tetap akan dapat melakukan mounting terhadap media yang tepat.

nah, untuk nyari tau nomer UUID dari hardisk / partisi yang kita miliki, ada 2 cara, yaitu: [Read the rest of this entry...]

Tags: ,

Comments (4)

First Day @ BaliCamp, Pacung

BaliCampThe Software Development Camp.

alhamdulillah.. akhirnya nyampe juga di BaliCamp, Pacung. kesan pertama, dinginnnnn.. :shock:

di BaliCamp ini, bisa dibilang fasilitasnya tergolong “wah”.. :mrgreen: ada kolam renang, ada fitness centre, meja pingpong (tenis meja), ada shower (dengan air hangat) tentunya, dan di tiap ruangan modul, ada pantry dan kamar mandi.
[Read the rest of this entry...]

Tags:

Comments (13)

USB HSDPA Modem Huawei E272 Cooler

:mrgreen: hehehe.. sesuai dengan judul postingannya, kali ini saya ingin berbagi gmn caranya membuat cooler (pendingin) untuk USB HSDPA modem Huawei E272.. tapi ga menutup kemungkinan untuk diterapkan pada seri modem yang laennya, misalnya Huawei E220, dll.. :wink:

bahannya juga apa adanya.. antara lain:

  • heatsink. ambil aja dari motherboard kompi yang udah ga kepake.
  • fan / kipas. beli yang kecil aja klo bisa.
  • kabel usb (perpanjangan). ga mesti beli baru kabel usb-nya, yg jelas salah satu ujung kabelnya harus bisa dimasukin ke colokan usb di leptop / kompi.

nah.. klo udh terkumpul smua, skrg saatnya merakit.. :cool:
[Read the rest of this entry...]

Tags:

Comments (24)

Hello World!

public class HelloWorld {
	public static void main(String[] args)
	{
		System.out.println("Hello World!");
	}
}

Tags:

Comments (4)