Solved

Text from webpage into a text file

Posted on 2004-04-29
5
164 Views
Last Modified: 2010-04-05
How to get certain columns of text from a webpage into a text file?
Let says my webpage have a table of numeric data, I want to capture those numbers into a text file. How can i do that?
0
Comment
Question by:cybermilky
  • 3
5 Comments
 
LVL 7

Expert Comment

by:sftweng
ID: 10956609
Well, one way would be to strip out all HTML tags by deleting everything between "<" and ">". But that would destroy the formatting. How much of the structure (formatting) do you want to keep?
0
 
LVL 1

Author Comment

by:cybermilky
ID: 10956805
After getting all the data from the table, the format for the text file can be kept as below:

A0001     040430     931.0   939.0   927.0   936.0   988   3396
D0002     040430     944.5   949.8   937.0   945.0     48    362
C0003     040430     982.3   982.3   970.0   970.0       4     33

0
 
LVL 3

Accepted Solution

by:
Kunfufaresi earned 40 total points
ID: 10958669
Hello,

Take a look at

http://www.euromind.com/iedelphi/uilessparser/ieparser.htm

for parsing html pages. It has lots of functions

from site it says

MSHTML is in IEParser used as the "engine" in a HTML-parser component.
Drop the component on a form. Set URL-property and run function execute.
Enjoy!
 
Kunfu Faresi
0
 
LVL 1

Author Comment

by:cybermilky
ID: 10992772
Other than using IEParser, any other options to do this?
0
 
LVL 1

Author Comment

by:cybermilky
ID: 11011452
Hi Kunfufaresi,

after i download the ieparser component, how do i install and use it?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now