Created
April 17, 2014 09:49
-
-
Save yangjunjun/10969656 to your computer and use it in GitHub Desktop.
批量获得豆瓣相册的照片的原地址
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 批量获得豆瓣相册的照片的原地址 | |
* | |
* 用法: | |
* 1. 打开某相册的首页,如 http://www.douban.com/photos/album/122789497/ | |
* 2. 打开控制台,把运行下面的代码 | |
* | |
* 不足: | |
* 1. 只能下载相册第一页的图片 | |
*/ | |
var imgsrc = ''; | |
$('.photolst img').each(function() { | |
imgsrc += $(this).attr('src').replace('thumb', 'large') + '<br>'; | |
}) | |
$('body').prepend('<p>' + imgsrc + '</p>') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment