in reply to Re: Passing Values to a webpage and retrieving an answer
in thread Passing Values to a webpage and retrieving an answer
I tried using www:Mechanize to do it (after searching the web). What i have so far is:
my $ua = LWP::UserAgent->new; $ua->env_proxy; $te='hallo hallo hallo'; print $te; my $response = $ua->get('http://sentimentanalyzer.appspot.com','in +put'=>$te); if ($response->is_success) { #In here i want to retrieve a value from the site after # inserting the text and hitting the "submit" button. }
The textarea in the site is named "input".
I also didn't figure out how to activate the button..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Passing Values to a webpage and retrieving an answer
by Corion (Patriarch) on Apr 30, 2012 at 22:21 UTC | |
by nateg (Initiate) on May 01, 2012 at 00:12 UTC | |
by Corion (Patriarch) on May 01, 2012 at 08:24 UTC |