The Lynx browser

Using Lynx

Before you run the Lynx command from within a Perl program, try to run it from the Unix command line.
Enter lynx -help to get a complete list of options


CommandAction
1lynxOpens the Lynx browser with a default URL. Enter "g" and then a URL to retrieve a specific document
2lynx "http://..."Opens the given URL. You can press on links therein to retrieve further pages.
3lynx -dump "http://..."Dumps on the screen the contents of the given URL.
4lynx -dump "http://..." > filenameWrites the contents of the given URL to the file filename.
5lynx - source "http://..."Dumps on the screen the source HTML code of the given URL.
6lynx - source "http://..." > filenameWrites the source HTML code of the given URL to the file filename.

From within Perl programs, use command 3 or 5 to retrieve the text or the source code, respectively, of the desired URL.

The Lynx command is also useful for retrieving documents from FTP sites. Simply use the URL of the FTP site, e.g. "ftp://...".


Table of Contents.