Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Saving a Div from WebPage
#2
The "Market Movers" table often is missing in the page, need to reload the page, sometimes many times.

Macro Macro2768
Code:
Copy      Help
out
HtmlDoc d
;d.SetOptions(2) ;;makes worse
;g1
d.InitFromWeb("http://finance.yahoo.com/market-overview/")

rep 10 ;;wait for the javascript to finish
,0.1
,str s=d.GetHtml("div" "marketmoversgs-tab1")
,err out "waiting"; continue
,break
if(!s.len)
,out "RETRY"
,goto g1
,;out
,;s=d.GetHtml(); out s
,;end "failed"
out s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)