Some background on my program first. Flickr has a photo group that is all wallpaper images, over 12,000 of them. I made a program that downloads a random one out of the bunch.
To do this you first need to do three steps
My code to download source code is:
Which is taken pretty much word for word from another post I read on these forums. Thanks in advance for any help you can give.
To do this you first need to do three steps
- download the source code from a gallery page and find the name of the photo
- download the source code from the photos homepage to find the address to the photo itself.
- Then you can use that to download the photo.
My code to download source code is:
VB.NET:
Dim wrq As WebRequest = WebRequest.Create(website)
Dim wrp As HttpWebResponse = DirectCast(wrq.GetResponse(), HttpWebResponse)
Dim sr As StreamReader = New StreamReader(wrp.GetResponseStream)
Dim SourceCode As String = sr.ReadToEnd()
Which is taken pretty much word for word from another post I read on these forums. Thanks in advance for any help you can give.