Re: using lynx to dump formatted content (was: command line fan fiction program?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On March 23, 2017, Chime Hart wrote:
> Now an inquiree for Tim? You mentioned useing wget as a
> screen scraper? Would that be the best tool for simulating a
> printer friendly page, to get rid of any toolbars-and-links, to
> just endup with what you may remember as a Gopher rendering of an
> article?

Lynx has a "-dump" command-line option (which is effectively the same
as the "p"rint command when issued within a running instance of lynx).

It does provide a "printer friendly" sort of view of the page
by rendering the text as Lynx would do interactively.  However,
it doesn't strip away the toolbars and other cruft. It does put a
footnote-like number beside each link and then puts all of the linked
URLs at the bottom of the document which is nice for printing.  With
enough constancy in the page layout, these could be stripped by
post-processing through sed.

> If you-and-Karen prefer, we could begin a new thread under
> a new subject-line?

I've gone ahead and changed the Subject line.

-tim


_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list



[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]