Home > None > Downloading website to Hard Disc

Downloading website to Hard Disc

Downloading websites its easy on linux, all what we need is execute a command:

wget -r -l1 -k -p <address>

Arguments:

-r Recursive download (download all files and folders too)
-l1
Download depth for recursive download. (-l0 for infinite. Its -l zero not letter)
-k
Convert Links to local links. Able to browse website locally without manual converting links
-p
Download images too
<address> Address to download e.g. http://mypage.com

In example if we need a WxPython documentation locally we can download it by:

wget -r -l0 -k -p http://docs.wxwidgets.org/stable/

Warning: All files will be downloaded (e.g. zip rar and others)

Advertisements
Categories: None Tags: ,
  1. kelonye
    September 3, 2010 at 7:47 am

    -p for pictures too

    • September 3, 2010 at 12:37 pm

      thanks i added to post

  2. Rigor Mortis
    October 20, 2010 at 8:09 pm

    I cannot speak english very well but i’m sure you make a mistake writting Hard Disk The word “disk” ends with a K, not a C.

    By the way, I’m starting with Python and I’m a CherryTree user. So, it was matter of time I find your blog.

    • October 21, 2010 at 3:40 am

      Thanks for correction. post was been updated.
      PS. English is not my native language too. 🙂

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: