LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-04-2007, 10:30 AM   #1
gawain
Member
 
Registered: Dec 2006
Location: Italy -Rome
Distribution: Slackware 11.0
Posts: 55

Rep: Reputation: 15
from html to txt/doc


Hi everybody.

I've been using lynx to convert html files to txt. But I was wondering if there is any other utility which could do the same job, and maybe a bit better. I've been searching in the forum, but it seems as if everybody is working from txt/doc to html.

Please, if anyone has got any hint.
Thanks a lot
 
Old 02-04-2007, 10:58 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
html2text

It did an excellent job for me converting some public domain stories into to text files for reading on my pda. I did have to fiddle with some of the conversion parameters to get the headers to come out as I wanted them, but that wasn't difficult to do.
 
Old 02-04-2007, 03:30 PM   #3
gawain
Member
 
Registered: Dec 2006
Location: Italy -Rome
Distribution: Slackware 11.0
Posts: 55

Original Poster
Rep: Reputation: 15
Great. Thanks
 
Old 02-04-2007, 04:33 PM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
You might also want to look at w3m and elinks. elinks has the advantage that if you pass a web address that requires cookies and/or some sort of login it will usually work.
 
Old 02-05-2007, 02:52 PM   #5
gawain
Member
 
Registered: Dec 2006
Location: Italy -Rome
Distribution: Slackware 11.0
Posts: 55

Original Poster
Rep: Reputation: 15
Thanks for the new tips.

Quote:
Originally Posted by dive
elinks has the advantage that if you pass a web address that requires cookies and/or some sort of login it will usually work.
I'm not sure I understand what you mean; anyway, I'll try both of them
Thanks again
 
Old 02-05-2007, 03:30 PM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
I mean if you do something like 'elinks -dump google.com > google.txt' it will log you in (providing you have a login there of course) using cookies and convert your personalised page, rather than the page you would get without login in.
 
Old 02-06-2007, 02:58 AM   #7
gawain
Member
 
Registered: Dec 2006
Location: Italy -Rome
Distribution: Slackware 11.0
Posts: 55

Original Poster
Rep: Reputation: 15
OK! The things they think of!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting from Word for Mac .doc to txt Arjuna Linux - Software 11 09-04-2006 01:04 PM
Converting PDA DOC to TXT kaaaja Linux - Laptop and Netbook 1 04-26-2005 04:48 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 06:06 AM
convert .doc to .txt using C++ ckamheng Programming 2 06-21-2003 09:25 AM
txt file to html > right forum ? saavik Programming 7 04-16-2002 09:42 AM


All times are GMT -5. The time now is 03:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration