標題:
請問 GOODINFO已經可以抓資料,但該怎麼設定為"年"長度的資料
[打印本頁]
作者:
vavashop
時間:
2016-9-6 12:26
標題:
請問 GOODINFO已經可以抓資料,但該怎麼設定為"年"長度的資料
本帖最後由 vavashop 於 2016-9-6 12:29 編輯
大大們
請問一下
這網站已經可以抓取資料
可是我遇到一個問題
他預設是三個月
我想抓一年
這樣該怎麼去修程式碼呢?[attach]25157[/attach]
作者:
GBKEE
時間:
2016-9-7 14:34
回復
1#
vavashop
With .document
'Google Chrome 中 檢查元素的內容,得知 [顯示範圍]的 id="selMarginPeriod"
''<select id="selMarginPeriod" onchange=" txtMarginDetailLoading.style.display=''; selMarginPeriod.style.cursor='wait'; document.body.style.cursor='wait'; setTimeout(function(){ var result = ExecuteAsp('ShowBearishChart.asp?STOCK_ID=2303&CHT_CAT=DATE&STEP=DATA&PERIOD='+encodeURIComponent(selMarginPeriod.value),''); if (result['result']) { divMarginDetailData.innerHTML = result['responseText']; } document.body.style.cursor='default'; RepaintAD(); googletag.pubads().refresh(); },100);"><option value="90" selected="">三個月</option><option value="180">六個月</option><option value="365">一年</option></select>
With .getElementByid("selMarginPeriod")
.Value = "365"
.fireEvent ("onchange")
End With
複製代碼
歡迎光臨 麻辣家族討論版版 (http://forum.twbts.com/)