http://mp3.yisou.com/search.html?p=%B4%F3%BA%A3&mimetype=all&b=1&rb=1&source=yisou_music_hp_search&pid=yisou
http://mp3.yisou.com/search.html?p=%B4%F3%BA%A3&mimetype=all&b=21&rb=1&source=yisou_music_hp_search&pid=yisou
http://mp3.yisou.com/search.html?p=%B4%F3%BA%A3&mimetype=all&b=41&rb=1&source=yisou_music_hp_search&pid=yisou
http://mp3.yisou.com/search.html?p=%B4%F3%BA%A3&mimetype=all&b=61&rb=1&source=yisou_music_hp_search&pid=yisou
要求代码能依次下载上面4个连接。
我写的代码下载其他网站的都没问题,惟独下载yisou的就“响应超时”能解答者100分送上
http://mp3.yisou.com/search.html?p=%B4%F3%BA%A3&mimetype=all&b=21&rb=1&source=yisou_music_hp_search&pid=yisou
http://mp3.yisou.com/search.html?p=%B4%F3%BA%A3&mimetype=all&b=41&rb=1&source=yisou_music_hp_search&pid=yisou
http://mp3.yisou.com/search.html?p=%B4%F3%BA%A3&mimetype=all&b=61&rb=1&source=yisou_music_hp_search&pid=yisou
要求代码能依次下载上面4个连接。
我写的代码下载其他网站的都没问题,惟独下载yisou的就“响应超时”能解答者100分送上
string url="http://mp3.yisou.com/search.html?p=%B4%F3%BA%A3&mimetype=all&b=1&rb=1&source=yisou_music_hp_search&pid=yisou";
HttpWebRequest myReq=(HttpWebRequest)WebRequest.Create(url);
HttpWebResponse myResp=(HttpWebResponse)myReq.GetResponse();
StreamReader myStream=new StreamReader(myResp.GetResponseStream());
string content=myStream.ReadToEnd();
Console.WriteLine(content);
我除了自己写就是去搜索其他人的代码,得到的也是跟上面两位提供的差不多,我都运行了,如果用按钮点一下下载一个URL,那几乎所有的代码都可以完成,但要循环下载,还没有能稳定完成的尤其是yisou的HTML,我有一个可以循环下载baidu的,但不懂为什么不能下载yisou