Re: [.NET]用 VB.NET抓WiKi的原始檔
※ 引述《ming928 (Poper)》之銘言:
: Dim st As New System.IO.StreamReader(WebRequest.Create(New Uri("http://zh.wikipedia.org/w/index.php?title=%E7%81%AB&variant=zh-tw")).GetResponse.GetResponseStream, System.Text.Encoding.Default)
: Me.TextBox1.Text = st.ReadToEnd
: 試過了所有的編碼,無法在維基百科的網頁抓取原始檔。
MSDN查HttpWebRequest class, 設好它的一些屬性(such as ContenType etc.)
, 再去呼叫它的GetResponse方法.
--
===============================
想討論dotNet嗎? 想知道dotNet嗎?
來這兒逛逛吧!
http://netforum.no-ip.biz
http://dotnet-project.no-ip.biz
===============================
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.126.240.23
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):