LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-29-2010, 10:19 AM   #1
say_hi_ravi
Member
 
Registered: Jan 2008
Posts: 75

Rep: Reputation: 15
Perl script to view URL


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

I am new to perl :-(
 
Old 03-29-2010, 12:01 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by say_hi_ravi View Post
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.
 
Old 03-29-2010, 12:03 PM   #3
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
Heres a hint:
Use wget to download it and use Curses library to show it.
 
Old 03-29-2010, 03:05 PM   #4
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by say_hi_ravi View Post
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.
 
Old 03-29-2010, 07:10 PM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
URL parsing program in perl ludeKing Programming 3 09-30-2010 03:58 PM
Can we open a browser (firefox/IE) & enter URL in it via shell/PERL script. barde Linux - Newbie 6 02-18-2009 05:21 AM
Encoding ( ) in a url with perl Elguapo Programming 2 05-06-2008 01:43 PM
Converting a Windows Perl script to a Linux Perl script. rubbercash Programming 2 07-19-2004 10:22 AM
View my site on network with url, not the local ip# neyoung Linux - Networking 3 02-02-2004 07:51 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration