LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2010, 05:49 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Rep: Reputation: 51
A command line html reader?


Kernel 2.6.21.5, Slackware 12.0

Hi:
A command line html reader, or a conversion tool from html to text is what I would like to know if any of you guys knows. It has not to do a perfect job. And it would be nice if it is a native unix/linux program. Any hint will be welcome.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 12-17-2010, 05:55 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
What do you mean with HTML reader?
If you want to look at HTML files on CLI you can use text browsers like w3m, links or lynx. I am not sure if one of them is preinstalled in Slackware, but I would be surprised if not.
 
Old 12-17-2010, 06:00 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Reading a file : 'lynx file.html

Converting : html2txt file.html
http://www.linuxquestions.org/questi...6&d=1292610942
..
 
2 members found this post helpful.
Old 12-17-2010, 06:03 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,522

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
You can use lynx:
Code:
lynx -dump http://www.domain.com/somepage.html > somepage.txt
Regards
 
1 members found this post helpful.
Old 12-17-2010, 06:04 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
They exist. Did you "Google" it?

A basic one can be found in the W3C www library application package.
 
Old 12-17-2010, 08:19 PM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,485

Original Poster
Rep: Reputation: 51
Thank you guys. And a special thanks to knudfl for his link. I did not have html2txt.
 
  


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
Command Line RSS Reader and Weather Forecaster? Baryonic Being Linux - Software 5 07-26-2010 12:41 PM
converting .html files to pdf from the command line jason7 Linux - General 6 01-24-2009 09:46 AM
HTML to PDF Command Line App Luvz2Fly Linux - Software 1 12-03-2008 04:14 PM
opening an html file from command line ashlesha Linux - Newbie 5 07-18-2006 02:14 PM
How to send an mime/html-email by command line ? fluppi Linux - Networking 0 07-08-2004 10:26 AM


All times are GMT -5. The time now is 12:07 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration