运维开发网

浏览器和迅雷简单拿到动漫妹子图

运维开发网 https://www.qedev.com 2021-04-23 15:33 出处:51CTO 作者:东方佑
步骤可以参考:https://dongfangyou.blog.csdn.net/article/details/108938497后期可以使用python自动抓取可以参考:https://dongfangyou.blog.csdn.net/article/details/105876184

步骤可以参考:

https://dongfangyou.blog.csdn.net/article/details/108938497

后期可以使用python

自动抓取可以参考:

https://dongfangyou.blog.csdn.net/article/details/105876184

使用这个执行js的方案结合浏览器抓取方案可以实现全部抓取动作

for (var i=1;i<54;i++){ try
   {
     console.log(document.querySelector("#__next > div._21bLU4._3kbg6I > div > div > section:nth-child(1) > article > div:nth-child("+i+") > div.image-container > div.image-view > img").getAttribute("src"));
   }catch(err)
   {
   txt="本页中存在错误。\n\n"

   }
  }

//upload-images.jianshu.io/upload_images/3014274-a07bdbfeb4e14f43.png?imageMogr2/auto-orient/strip|imageView2/2/w/1000/format/webp//upload-images.jianshu.io/upload_images/3014274-0c08479dba3e2fd0.png?imageMogr2/auto-orient/strip|imageView2/2/w/1000/format/webp

 //upload-images.jianshu.io/upload_images/3014274-f5a60624b1753f3d.png?imageMogr2/auto-orient/strip|imageView2/2/w/1000/format/webp
 
 //upload-images.jianshu.io/upload_images/3014274-6b544c14694366e8.png?imageMogr2/auto-orient/strip|imageView2/2/w/1000/format/webp//upload-images.jianshu.io/upload_images/3014274-fca8d8dcf034d836.png?imageMogr2/auto-orient/strip|imageView2/2/w/1000/format/webp

 //upload-images.jianshu.io/upload_images/3014274-36724b80f620494a.png?imageMogr2/auto-orient/strip|imageView2/2/w/1000/format/webp

 //upload-images.jianshu.io/upload_images/3014274-0705af2b3edb19cf.png?imageMogr2/auto-orient/strip|imageView2/2/w/1200/format/webp//upload-images.jianshu.io/upload_images/3014274-0d9c974224e3afc2.png?imageMogr2/auto-orient/strip|imageView2/2/w/1000/format/webp
 
 //upload-images.jianshu.io/upload_images/3014274-f6aed37f0ac2f5dc.png?imageMogr2/auto-orient/strip|imageView2/2/w/1200/format/webp

只要将上面的链接丢到浏览器就可以查看图片

只要加上https:粘贴到迅雷可直接得到图片

进入https://www.jianshu.com/u/364801534788

使用如下这句

for (var i=1;i<54;i++){ try
   {
     console.log(document.querySelector("#list-container > ul").children[i].children[0].href);
   }catch(err)
   {
   txt="本页中存在错误。\n\n"

   }
  }

抓取到详情链接

使用最上面的那段代码抓取该链接https://www.jianshu.com/p/60d7261cb6c2

中的妹子图

0

精彩评论

暂无评论...
验证码 换一张
取 消