Arokh
Well-known member
- Joined
- Apr 11, 2006
- Messages
- 124
I have searched through the forum for a method to download the html code from webpages and
found some threads easily.
So far I have:
[VB] Public Function GetURLSource(ByVal URL As String) As String
Dim wClient = New System.Net.WebClient()
Dim buffer As Byte()
buffer = wClient.DownloadData(URL)
GetURLSource = System.Text.Encoding.Default.GetString(buffer, 0, buffer.Length)
End Function[/VB]
On most webpages it works as it should, but on the webpage I want to read from it doesnt.
For example http://anidb.info/perl-bin/animedb.pl?show=anime&aid=96
I want to read the page so I can get the episode names from the series.
But all the function returns is "
found some threads easily.
So far I have:
[VB] Public Function GetURLSource(ByVal URL As String) As String
Dim wClient = New System.Net.WebClient()
Dim buffer As Byte()
buffer = wClient.DownloadData(URL)
GetURLSource = System.Text.Encoding.Default.GetString(buffer, 0, buffer.Length)
End Function[/VB]
On most webpages it works as it should, but on the webpage I want to read from it doesnt.
For example http://anidb.info/perl-bin/animedb.pl?show=anime&aid=96
I want to read the page so I can get the episode names from the series.
But all the function returns is "