Skip to content

Instantly share code, notes, and snippets.

@yangjunjun
Created April 17, 2014 09:49
Show Gist options
  • Save yangjunjun/10969656 to your computer and use it in GitHub Desktop.
Save yangjunjun/10969656 to your computer and use it in GitHub Desktop.
批量获得豆瓣相册的照片的原地址
/*
* 批量获得豆瓣相册的照片的原地址
*
* 用法:
* 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