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

_______________________________________________
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users

Reply via email to