Re: scripting lynx
On Wed, Aug 01, 2001 at 12:17:20AM +0200, Russell Coker wrote:
> I want to script lynx to post data to a web site and save the results.
> I am using the --post_data option but have been unable to find
> documentation on the format of data expected on standard input.
> I have been trying the following:
> Where I want to simulate a click on the button named "Getlist" and put
> the quoted values in the "Hour" and "Day" variables.
try without the quotes:
cat <<__EOF__ | lynx -dump -post_data .......
alternatively, use POST from libwww-perl (LWP).
cat <<__EOF__ | POST -s -d $URL
or use the LWP modules to make yourself a web-bot.
craig sanders <firstname.lastname@example.org>
Fabricati Diem, PVNC.
-- motto of the Ankh-Morpork City Watch