7

Tip #666   Scripting Lynx for automated web actions

If you have a series of actions that you perform with the command line web browser lynx, it is possible to record these and then run them all again later. This can be used to record downloading a file, logging in and checking details or pretty much anything else you can do in lynx.

To record your session do the following:

$ lynx -cmd_log logfilename

This will stop recording when you quit lynx. And then to play back those actions:

lynx -accept_all_cookies -cmd_script=/path/to/logfilename