CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
Printing Web Pages

 



U5Webmaster
newbie

Jul 25, 2001, 10:51 AM

Post #1 of 2 (644 views)
Printing Web Pages Can't Post

There used to be a program in Perl called PrintIt that strips out everthing but text on a page and makes the text all black in order to have a printable page. The site has disappeared, and the only other script I can find is not as good and costs. Does anyone know of a smallish script that can do this? It's important. Email me at webmaster@unit5.org if you know where I can get a copy of PrintIt or something similar.

Thanks!

U5Webmaster



Kanji
User / Moderator

Jul 26, 2001, 5:55 PM

Post #2 of 2 (633 views)
Re: Printing Web Pages [In reply to] Can't Post

It may be easier to abuse the limitationa of a text-only browser such as w3m or lynx (both of which can be run as browser -dump http://www.perlguru.com/ to get text only output).

Alternately, if you'd prefer to stick with Perl, then take a look at the LWP and the HTML::Parser suite of modules.

The former even comes with a demo script that does what you're looking for (lwp-request -o text http://www.perlguru.com/).


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives