[prev in list] [next in list] [prev in thread] [next in thread]
List: curl-users
Subject: RE: Convert HTML from Curl
From: Jared Ingersoll <jared () cswv ! com>
Date: 2003-11-13 12:48:35
[Download RAW message or body]
Hi folks,
I used html2text from:
http://userpage.fu-berlin.de/~mbayer/tools/html2text.html
It's a little slower than Lynx, but it compiled easily on Red Hat 9.0 and
allowed me to set the maximum width, which I was unable to do (or figure out
how to do, more importantly) with the others mentioned below.
html2text -width 500 data.html
Works like a charm...
jared
-----Original Message-----
From: Daniel Stenberg [mailto:daniel-curl@haxx.se]
Sent: Thursday, November 13, 2003 2:41 AM
To: Curl Mailinglist
Subject: Re: Convert HTML from Curl
On Wed, 12 Nov 2003, Jared Ingersoll wrote:
> I was wondering if curl has the ability to convert HTML into plain text
> (without wrapping)?
curl can't convert HTML (or other contents) at all.
> I have some data in <table> tags that I want to format into a txt file
> without wrapping. I'm using lynx right now, but it's not working well.
lynx, links, w3c... there are several different text-based browsers you can
try. I bet there exists several other tools for this as well, try searching
on
freshmeat etc, or just google around.
> If curl does not support this and there are other suggestions (on unix),
> feel free to email me off-list (as it may be off-topic) at jared -at- cswv
> -dot- com.
Getting a reply on-list is good too, as it allows others to fill in their
replies and it makes this answer get stored in the archives for future
users'
benefit.
Good luck!
--
Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
[[ Do not post private mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic