Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting html table from a webpage
Message
From
11/08/2003 08:48:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
10/08/2003 12:59:28
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00818707
Message ID:
00818851
Views:
25
>I want to parse a html table from a web page. The web page has many tables on the page. Each table has a div element around it. There are other div statements that are not around tables. The only way I can tell if it's the data I want is if the div statment class = index1
>
>Example
>
><div class=index1><table>
>*-- Data I want
></table>
></div>
>
>
>I'm trying IE OLEAutomation and get to the oie.Document.Body but I can't seem to be able to loop though all the div's then once I find the correct div find the table in it.

Chuck,
You might get the innerHTML and strextarct. ie:
lcMyDiv = strextract(oie.Document.Body.innerHTML, ;
'<div class=index1>','</div>',1,3)

lcMyTable = StrExtract(lcMyDiv, '<table>','</table>',1,3)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform