in reply to Re: Dump a Web PAge to a text File
in thread Dump a Web PAge to a text File

i want to randomly download a file from any website. So i wanted to go to a particular website and then download a particular file from it. For that i need to convert the web page into a text file to extract the URI of the file..

Replies are listed 'Best First'.
Re^3: Dump a Web PAge to a text File
by marto (Cardinal) on Mar 14, 2011 at 08:57 UTC

    Consider using the WWW::Mechanize module. The documentaion is clear and it provides the functionality you require to solve your current problem.

    You've been advised several times now to look at using a module such as WWW::Mechanize, it has great documentation. For some reason you aren't telling us you don't want to take this advice. If you do take this advice you'd find it an easy solution to your current problem.

    Update: fixed link to WWW::Mechanize, thanks Corion.

    Update 2: My mistake, updated reply.