The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
To Break data out of HTML phip Shell Programming and Scripting 1 05-20-2008 03:23 AM
Converting HTML data into a spreadsheet garric Shell Programming and Scripting 4 04-22-2008 10:00 AM
extract data from html tables Streetrcr UNIX for Dummies Questions & Answers 8 03-20-2008 06:14 AM
How do I extract text only from html file without HTML tag los111 UNIX for Dummies Questions & Answers 4 11-28-2007 04:40 AM
html - text file question frustrated1 Shell Programming and Scripting 5 09-21-2005 05:23 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-18-2007
phani_sree phani_sree is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 52
coverting html data to text in 'c'

hi,
iam reading the webpage using curl socket.
so iam geting the data in html format
so how can convert html data to text data ,so i can move forward.
thank u,
sree
  #2 (permalink)  
Old 10-18-2007
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,859
HTML is basically ASCII text with embedded tags. You can roll your own parser to find the text you are looking for or you can use something like TinyXML if your HTML is XHTML-comformant.
  #3 (permalink)  
Old 10-18-2007
phani_sree phani_sree is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 52
how it can be possible ,is there any function in c .
  #4 (permalink)  
Old 10-18-2007
drl's Avatar
drl drl is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 699
Hi.

Instead of using curl or wget, you might consider using lynx, it removes the tags:
Quote:
-dump dumps the formatted output of the default document or one
specified on the command line to standard output. This can be
used in the following way:

lynx -dump Lynx links

-- excerpt from man lynx
or the html2text utility at html2text | mbayer.de

Best wishes ... cheers, drl
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0