LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 11-02-2008, 01:27 AM   #1
hvivekw
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
how to open a web page using perl?


I would like to access/open a webpage using some perl commands.
I have to open the webpage and then perform some automation on some of the tabs that appear on the webpage.
I am unable to open the webpage itself...How do I do it with perl?
 
Old 11-02-2008, 02:09 AM   #2
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,695
Blog Entries: 5

Rep: Reputation: 237Reputation: 237Reputation: 237
you can try LWP module.
If Perl is not absolutely necessary, you can do it with *nix tools like wget/curl/lynx or even bash
Code:
bash$ exec 5<>/dev/tcp/www.somewhere.com/80
bash$ echo -e "GET / HTTP/1.0\n" >&5
bash$ awk '{#do processing with tabs}' <&5

Last edited by ghostdog74; 11-02-2008 at 02:11 AM.
 
Old 11-02-2008, 07:24 PM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.2, Centos 5.8
Posts: 11,740

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
Also look at the WWW::Mechanize module.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why is mozzilla firefox on linux slow to open a saved web page when offline. newbiedb Linux - Newbie 2 10-18-2008 11:02 AM
Can ping web page from telnet, but can't open it in web browser a.ilic Linux - Networking 1 04-01-2008 10:29 AM
iceweasel won't load a perl web page rdskaroff Debian 1 02-17-2007 02:59 PM
RedHat 9 - I cannot open a Mozilla web page Linh Red Hat 1 03-29-2004 01:03 PM
Web Page Retrieval & Processing with PERL BBQ_Matt Programming 3 10-25-2003 09:20 AM


All times are GMT -5. The time now is 03:29 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration