Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving a Div from WebPage
#4
Gets the table from the div HTML and converts to CSV. Add this code to the end of previous macro.

Macro Macro2768
Code:
Copy      Help
HtmlDoc k.InitFromText(s)
ARRAY(str) a
k.GetTable(0 a)
int i nc=7
ICsv x._create; x.ColumnCount=nc
for i 0 a.len/nc
,str& firstCell=a[i*nc]
,firstCell.rtrim("")
,x.AddRowSA(i nc &firstCell)

str csv; x.ToString(csv); out csv
;x.ToFile("...")


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)