How to open HTML page in a browser with specific options selected in drop-down boxes?

Reply

Join Date: Jul 2007
Posts: 2
Reputation: jvisprime is an unknown quantity at this point 
Solved Threads: 0
jvisprime jvisprime is offline Offline
Newbie Poster

How to open HTML page in a browser with specific options selected in drop-down boxes?

 
0
  #1
Jul 10th, 2007
How to open HTML page in a browser with specific options selected in drop-down boxes?

Hi Everybody,

The task that I have is from Perl script to open HTML page in a browser with specific options selected in drop-down boxes and edit fields using POST method.

The good example of such a page would be http://stockcharts.com/h-sc/ui. So if I do that manually:

I open the link in a browser,
type Symbol: $COMPQ,
select Chart Attributes\Range: 3 Month,
select Overlays\first row\first column: Exp Mov. Avg,
type Overlays\first row\second column: 5,
click on Update button.

The page gets updated according with the specified parameters.

So how can I get the same result using Perl?

I tried to search for the solution, but haven’t found anything directly related to my problem. So please point me to the source if the answer already exists somewhere else.

Thank you,

J
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: How to open HTML page in a browser with specific options selected in drop-down boxes?

 
0
  #2
Jul 10th, 2007
You will want to look into WWW::Mechanize if you intend to use perl.

http://search.cpan.org/author/PETDAN...W/Mechanize.pm
http://search.cpan.org/author/PETDAN...e/Examples.pod
http://search.cpan.org/author/PETDAN...hanize/FAQ.pod


There are also some modules written for gathering stock data.

http://search.cpan.org/~hampton/Fina...nance/Quote.pm

I have never used any of the above modules so I can't really help much more than I already have.

this will most likely be very difficult for you unless you already have solid perl experience and know how to install the modules.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 2
Reputation: jvisprime is an unknown quantity at this point 
Solved Threads: 0
jvisprime jvisprime is offline Offline
Newbie Poster

Re: How to open HTML page in a browser with specific options selected in drop-down boxes?

 
0
  #3
Jul 10th, 2007
Thank you, KevinADC.

I will look through the sources you suggested. Though my goal is not to gather stock data. The web page I mentioned was just a convenient public domain example. I am not an experienced Perl programmer and my goal is to learn how to operate with the HTML/scripts in the web browser, not just data collecting/processing.

I appreciate it anyway.

J
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 19
Reputation: chandrag is an unknown quantity at this point 
Solved Threads: 0
chandrag chandrag is offline Offline
Newbie Poster

Re: How to open HTML page in a browser with specific options selected in drop-down boxes?

 
0
  #4
Jul 19th, 2007
Hi all.

Can i open the web page through perl?
I get URL as a result in my perl code.
but, ofcourse, it is displayed in command prompt as i'm using windows.
I need that web page to be displayed directly.
can i do it?

i hope somebody can help with this.

thank you
chandrag
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC