[elinks-users] auto-submit + dump

witekfl at poczta.onet.pl witekfl at poczta.onet.pl
Mon Mar 6 13:29:22 PST 2006


On Wed, Mar 01, 2006 at 11:59:42AM +0100, jg wrote:
> Hello,
> 
> I am using a.html which contains a form and a submit button. 
> 
> 1/
>         If I do : "elinks -auto-submit 1 a.html" 
> :-) ok I get the good result
> 
> 2/
> If I add "-dump" : 
> elinks -dump -auto-submit 1 a.html > toto, 
> :-(
> elinks will not go on the page I want (toto=a.html) 
> 
> How can I get the result into toto.txt ?
> Any help please ?

You could use browser scripting, eg. Perl
Put somewhere in pre_format_html_hook something like this:
open ELINKS, "|elinks -dump > $html.txt";
print ELINKS "$html";
close ELINKS;
#exit;

Run elinks -auto-submit 1 url and ELinks will dump page for you.
This is good enough for similar cases like javascript redirects,
dumping frames, etc.

HTH,
Witek




More information about the elinks-users mailing list