2013-03-18 31 views
0

我想查看我的在線錢包以獲取來自此網站的新交易 instawallet.org
如何獲得0 BTC的放置位置並將其設置爲變量?從HTML中獲取特定參數

這裏是我的代碼無法正常工作:

Dim WebClient As New WebClient() 
    Dim Btc As String = WebClient.DownloadString(Mywallet-generate one of your own by going to instawallet.org) 
    Btc = Split(Btc, "<span class='digits' title='")(1).Split("</span>")(0).Split(">")(1) 

回答

0

你需要尋找以下標籤

<div id="balance"> 

這樣做的原因是,

<span> 

標籤不包含ID屬性,但包含在

<div id="balance"> 

標記。

嘗試下載/查找/提取ID爲「balance」的DIV標籤,並將包含實際餘額的span標籤。