Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Wget

tsholotsholo Member Posts: 11
Hi,

I would like to use wget to get all pages of a website.
I want to save these files so that i can read from all of them.

I tried using "wget -l 3 http://www.uct.ac.za" for depth = 3
This only save the index file of the home page.

Please help.

Comments

  • IDKIDK Member Posts: 1,784
    : Hi,
    :
    : I would like to use wget to get all pages of a website.
    : I want to save these files so that i can read from all of them.
    :
    : I tried using "wget -l 3 http://www.uct.ac.za" for depth = 3
    : This only save the index file of the home page.
    :
    : Please help.
    :

    Most are php pages...
    And I don't think it's possible to do something with them or something...

    I really have no clue
  • nugentnugent Member Posts: 87
    wget -l 3 -r http://www.uct.ac.za

    you can also -k or --convert-links which will convert the links in the downloaded files to make the suitable for local viewing



    ------
    nugent



  • tsholotsholo Member Posts: 11

    [b] Thank You very much, It's working[/b]

    : wget -l 3 -r http://www.uct.ac.za
    :
    : you can also -k or --convert-links which will convert the links in the downloaded files to make the suitable for local viewing
    :
    :
    :
    : ------
    : nugent
    :
    :
    :
    :


  • ITAITA Member Posts: 463

    : I really have no clue
    If you have no clue, what's the point of replying?

    --
    Isaac

    "Let us smite the evil slime eating hordes who may befall us on our quest to be the ultimate programmers of the known universe!"

  • IDKIDK Member Posts: 1,784
    :
    : : I really have no clue
    : If you have no clue, what's the point of replying?
    :
    : --
    : Isaac
    :
    : "Let us smite the evil slime eating hordes who may befall us on our quest to be the ultimate programmers of the known universe!"
    :
    :

    You're right, that was the worst reply I've seen I've done...

    What I wanted to say, was that someone else told me that it's not possible to get server scripts without having an ftp account.

    I asked if it's possible to download servers scripts a few months ago in the HTML board, and got that reply.

    As this seems wrong(according to the other reply), how does wget download cgi scripts??
  • ITAITA Member Posts: 463
    : :
    : : : I really have no clue
    : : If you have no clue, what's the point of replying?
    : :
    : : --
    : : Isaac
    : :
    : : "Let us smite the evil slime eating hordes who may befall us on our quest to be the ultimate programmers of the known universe!"
    : :
    : :
    :
    : You're right, that was the worst reply I've seen I've done...
    :
    : What I wanted to say, was that someone else told me that it's not possible to get server scripts without having an ftp account.
    This is correct. If you want to access the code (PHP say) then you need to login to the server. If it was possible another way, then there would be a huge security vulnerability, since database passwords and such like are often accessed with scripts.


    : As this seems wrong(according to the other reply), how does wget download cgi scripts??
    This isn't wrong. wget doesn't download cgi scripts. All it downloads is the HTML which is output from the script. It works in exactly the same way as your browser. Your browser only receives the HTML from the script - this is the same for wget.

    Regards,

    --
    Isaac

    "Let us smite the evil slime eating hordes who may befall us on our quest to be the ultimate programmers of the known universe!"

Sign In or Register to comment.