?
Solved

Text from webpage into a text file

Posted on 2004-04-29
5
Medium Priority
?
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 160 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month15 days, 3 hours left to enroll

771 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