LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Perl script to view URL (https://www.linuxquestions.org/questions/programming-9/perl-script-to-view-url-798663/)

say_hi_ravi 03-29-2010 10:19 AM

Perl script to view URL
 
Can anyone please help me write a perl script to view normal html page.

I am new to perl :-(

TB0ne 03-29-2010 12:01 PM

Quote:

Originally Posted by say_hi_ravi (Post 3916827)
Can anyone please help me write a perl script to view normal html page.

I am new to perl :-(

Sure, lots of people can help you do this. But we're not going to write it for you. Post what you've written, and where you're getting stuck, and we'll be glad to help.

Otherwise, there are many tutorials you can find on Google, to help get you going.

smeezekitty 03-29-2010 12:03 PM

Heres a hint:
Use wget to download it and use Curses library to show it.

Sergei Steshenko 03-29-2010 03:05 PM

Quote:

Originally Posted by say_hi_ravi (Post 3916827)
Can anyone please help me write a perl script to view normal html page.

I am new to perl :-(

Look for Gtk2::Html2 module at CPAN.

theNbomr 03-29-2010 07:10 PM

At least narrow the scope of the problem. Is this an exercise in downloading an HTML file, downloading an HTML page (inline graphics, etc), or is it an exercise in rendering an arbitrary page, or all of the above, or something else altogether? Just trying to do the first step of analyzing and breaking down the problem. And can you expand on the meanings of 'normal HTML page', and 'view'? To many, just echoing the HTML to standard out is viewing. To many others, rendering the page according to the markup content would be considered as viewing.
--- rod.


All times are GMT -5. The time now is 03:17 AM.