刚完成 Image Download 网页图片批量下载工具

可以自动下载网页,论坛,相册,图集,缩略图所对应的图片,并自动跳入下一页.
用户也可以引导程序找到下一页.
程序还可以将整个小站的所有图片下载下来.
支持超链接,javascript,多帧等情况

 

it can download the images of website, forum, album, and jump to the next

page automatically.
and the user also can help the app to find the next button/page, so that it

can automatically download images.
it also can download some small websites' all images if you want.
it can support the hyper link, javascript, multi-frames.
it is based on .NET 2.0
the language is C#
the core tech is webbrowser, multi-thread

 

下载地址: http://download.csdn.net/source/779043

 

测试的网站有:

图库:
  http://pic.39.net/
  http://piclib.pcauto.com.cn/girl/
  http://beauty.xicn.net
  http://mt.huzhai.com
  http://pics.skyhits.com/
  http://www.tu11.com/
  http://www.6778.com/ 
  http://www.imagewa.com/
  http://hotpic.yesky.com/
  http://learning.sohu.com/photo/
  http://www.chinatuku.com/
  http://pic.xilu.com/
  http://pic.people.com.cn/
  http://pic.kuaiche.com/
  http://www.yiitoo.com/
  http://www.qise.info/
  http://www.6188.net/

  http://www.xkmm.com/
  http://pic.news.mop.com/
  http://pic.qikoo.com/
  http://image.soso.com/

          

site 模式
http://www.thegreatwall.com.cn/photo/showalbum.php?cid=109
http://www.xmyzl.com/showpic.asp?pic_id=214
http://cnwang.net/tupian.htm
http://ivvv.net/
http://www.jixianlvyou.com/
http://www.myttc.cn/pic/
http://www.tupianz.com/
http://www.1000pictures.com/
http://wallpapers.graphicfreebies.com/

 

picasaweb 模式:
http://picasaweb.google.com/geneshaoj/Oct2008?feat=featured#5260727430793525746

 

auto 模式:
论坛 
http://bbs.voc.com.cn/topic-1682748-1-1.html
http://www.usask.ca/cgi-bin/cgiwrap/cssa/topic.cgi?forum=17&topic=1793&show=0
网页
http://www.jiujiuba.com/zhishi/shownews.asp?infoid=572
相册:
http://www.trailcanada.com/saskatchewan/saskatoon/photos/saskatoon/photo/427/
http://photo.mofile.com/picture/Z28W324SIR_103
http://pic.tianya.cn/myalbum/view_EveryPhoto_Tianya.aspidWriter=0&Key=0&PhotoID=10635979&UserID=20026391&DirID=954354&Tagsword=&time=10:19:51
http://www.bababian.com/picturedetail.sl?pictureID=6902DA57D504BECC3860912031BEB3A6DT&path=0C00893FEF5B64D7C8A2771F2A34425BUR
 http://album.enorth.com.cn/photo.jsp?photoId=7578571#photo
 http://photo.tibet.cn/cn/photoview.asp?xcid=448&id=1
 http://look.gxnews.com.cn/middleshow.php?tid=30735&pid=631176
 http://show.xoyo.com/yyjoy/pic/1040097.shtml?mode=4&sort=asc#photo
 http://www.qiezi.com/v1.0/coolalbum.jsp?qzalbum_seqno=184113#list

 http://comic.book.sina.com.cn/pic/xianjian070803/124310.html
 http://photo.sina.com.cn/photo/4dc1e0a344255280c6999&000
 http://photo.zol.com.cn/photo/1498452.html
 http://photo.21cn.com/album/11789417/1568863/18370241/?number=1
 http://photo.qq.com/portal/albumMain.shtml?1.0.2.2#uin=575600827&albumid=e70d0140-e0fa-4d24-8284-89cfc94b7fb0&lloc=a503c2a3-51f5-4986-9bfa-c1ef324d7ce8
 http://album.yinsha.com/php/single_photo.php?albumId=353714#49

 http://pp.sohu.com/photosetview-28743112-17817426.html
 http://photos.i.cn.yahoo.com/05977065206/14ae/8a3f.jpg/#doc-body
 http://www.tuhigh.com/photo/p/262927
 http://photo.sz.net.cn/photo/photolist.do?albumid=26488

 

运行环境 .NET Framework2.0 开发工具 Microsoft Visual Studio 2005 二. 部分代码说明(主要讲解异步分析和下载): 异步分析下载采取的策略是同时分析同时下载,即未等待数据全部分析完毕就开始把已经分析出来的图片链接开始下载。下载成功的均在List框链接前面划上了√ ,未能下载的图片有可能是分析错误或者是下载异常。 1. 异步分析部分代码 /// /// 异步分析下载 /// private void AsyncAnalyzeAndDownload(string url, string savePath) { this.uriString = url; this.savePath = savePath; #region 分析计时开始 count = 0; count1 = 0; freq = 0; result = 0; QueryPerformanceFrequency(ref freq); QueryPerformanceCounter(ref count); #endregion using (WebClient wClient = new WebClient()) { AutoResetEvent waiter = new AutoResetEvent(false); wClient.Credentials = CredentialCache.DefaultCredentials; wClient.DownloadDataCompleted += new DownloadDataCompletedEventHandler(AsyncURIAnalyze); wClient.DownloadDataAsync(new Uri(uriString), waiter); //waiter.WaitOne(); //阻止当前线程,直到收到信号 } } /// /// 异步分析 /// protected void AsyncURIAnalyze(Object sender, DownloadDataCompletedEventArgs e) { AutoResetEvent waiter = (AutoResetEvent)e.UserState; try { if (!e.Cancelled && e.Error == null) { string dnDir = string.Empty; string domainName = string.Empty; string uri = uriString; //获得域名 http://www.sina.com/ Match match = Regex.Match(uri, @"((http(s)?://)?)+[\w-.]+[^/]");//, RegexOptions.IgnoreCase domainName = match.Value; //获得域名最深层目录 http://www.sina.com/mail/ if (domainName.Equals(uri
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值