神代綺凛

[Script] nhentai 下载增强
因为 nhentai 本身仅提供登陆后 BT 下载的方式,比较麻烦而且速度较慢,因此编写了这个脚本,增加了直接 z...
扫描右侧二维码阅读全文
26
2019/01

[Script] nhentai 下载增强

因为 nhentai 本身仅提供登陆后 BT 下载的方式,比较麻烦而且速度较慢,因此编写了这个脚本,增加了直接 zip 打包下载的方式

Head Pic: 【オリジナル】「だいすき」/「空維深夜」のイラスト [pixiv]

nhentai 下载增强

需要浏览器先安装 Tampermonkey 插件

简略说明及效果预览 (NSFW)
说明请参阅 GitHub README


搬瓦工VPS优惠套餐,建站稳如狗,支持支付宝,循环出账94折优惠码BWH3HYATVBJW
年付$47CN2线路,1核/1G内存/20G硬盘/1T@1Gbps【点击购买
季付$47CN2 GIA线路,1核/1G内存/20G硬盘/1T@2.5Gbps【点击购买
Last modification:August 17th, 2020 at 10:29 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment Cancel reply

57 comments

  1. mitori  GNU/Linux x64(GNU/Linux x64) / Firefox 97.0(Firefox 97.0)
    在mua~ nhentai那个一键下载脚本nodejs版本考虑做一个嘛
  2. 白羊  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 90.0.4430.85(Google Chrome 90.0.4430.85)
    为什么我下载的后缀都是TXT,程序里默认还是zip的啊?
  3. 啊这  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 87.0.4280.88(Google Chrome 87.0.4280.88)
    该评论仅登录用户及评论双方可见
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 86.0.4240.198(Google Chrome 86.0.4240.198)
      @啊这
      该评论仅登录用户及评论双方可见
      1. 啊这  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 87.0.4280.88(Google Chrome 87.0.4280.88)
        @神代綺凜 了解了,非常感谢
  4. thx  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 78.0.3904.108(Google Chrome 78.0.3904.108)
    该评论仅登录用户及评论双方可见
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 86.0.4240.198(Google Chrome 86.0.4240.198)
      @thx 你可以改一下设置下载成 cbz 扩展名,其实本质还是 zip,但可以用支持 cbz 的图片查看器比如 honeyview 打开,不需要解压,而且易于整理和收藏
      1. thx  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 78.0.3904.108(Google Chrome 78.0.3904.108)
        @神代綺凜 好的,非常感谢制作这么方便的工具
  5. lx  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 84.0.4147.125(Google Chrome 84.0.4147.125)
    非常感谢!啊利噶多!٩(ˊᗜˋ*)و
  6. 优花里  Windows 10 x64 Edition(Windows 10 x64 Edition) / Firefox 77.0(Firefox 77.0)
    nhentai换网址啦,脚本不运行了Orz
    1. 神代綺凜  Mac OS X 10.15.5(Mac OS X 10.15.5) / Google Chrome 83.0.4103.116(Google Chrome 83.0.4103.116)
      @优花里 没换,正常运行
      1. 优花里  Windows 10 x64 Edition(Windows 10 x64 Edition) / Firefox 78.0(Firefox 78.0)
        @神代綺凜 (´இ皿இ`)中文版1的网址没改,可以使用,但是要有梯子才能上···中文版2和3网址不需要梯子但是没法用下载增强···有什么简单的方法让2和3的网址也能用下载增强咩(ó﹏ò。)
        1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 83.0.4103.61(Google Chrome 83.0.4103.61)
          @优花里 你说的是 NyaHentai 吧,不是 nHentai,麻烦认清楚

          我在新版本里加了 NyaHentai 新网址适配了

  7. victer  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 83.0.4103.97(Google Chrome 83.0.4103.97)
    nhentai改版了,好像下不了
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 83.0.4103.61(Google Chrome 83.0.4103.61)
      @victer 更新下,已经适配了
      1. victer  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 83.0.4103.97(Google Chrome 83.0.4103.97)
        @神代綺凜 谢谢OωO
  8. cafer  Windows 7 x64 Edition(Windows 7 x64 Edition) / Google Chrome 81.0.4044.138(Google Chrome 81.0.4044.138)
    为什么我解压出来的jpg 都打不开呢 而且文件特别小
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 81.0.4044.113(Google Chrome 81.0.4044.113)
      @cafer 估计是 nh 那边返回了什么 html,你可以用文本编辑器打开,把内容发给我看看

      在评论里要发 markdown 格式的代码块,不然 html 文本会被屏蔽

      ```
      内容
      ```
  9. Ry  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 60.0.3112.101(Google Chrome 60.0.3112.101)
    今天下载像往常一下进行下载的时候有出现下载下来的zip中有图裂的情况!用win10系统默认照片打开显示“似乎不支持此文件格式” 不过还不确定是不是什么其他因素导致的...姑且来报告一下
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 80.0.3987.149(Google Chrome 80.0.3987.149)
      @Ry 已修复,更新下脚本试试
  10. 失传技术  Windows 7(Windows 7) / Firefox 74.0(Firefox 74.0)
    大佬对NHENTAI.COM有办法吗,貌似图片质量什么的和.NET差不多但是我这测试能直连
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 80.0.3987.149(Google Chrome 80.0.3987.149)
      @失传技术 要做当然可做,但 .com 和 .net 的不同,是两个站,而且大致看了下 .com 里面的汉化本在去年 1 月以后就没有人继续上传了,因此并不打算做 .com 的支持
      1. 失传技术  Windows 7 x64 Edition(Windows 7 x64 Edition) / Google Chrome 72.0.3626.119(Google Chrome 72.0.3626.119)
        @神代綺凜 希望大佬能试试,毕竟这里多个网络环境下测试能直连,直连网站使用率还是会更高的
        1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 80.0.3987.163(Google Chrome 80.0.3987.163)
          @失传技术 确实如你所说,但这个网站的按时间排序问题是真滴大,你可以感受下,我还以为真的不更新了
          https://nhentai.com/zh/language/chinese?page=1&q=&sort=uploaded_at&order=asc&duration=day

          光这点我就没有用它的理由了,还是说我姿势哪里有问题

          另外如果只是希望能直连访问,你也可以选择 NyaHentai,它本质就是 nHentai,脚本也已经做了适配

          1. 失传技术  Windows 7 x64 Edition(Windows 7 x64 Edition) / Google Chrome 72.0.3626.119(Google Chrome 72.0.3626.119)
            @神代綺凜 谢大佬,我好了
      2. 失传技术  Windows 7 x64 Edition(Windows 7 x64 Edition) / Google Chrome 72.0.3626.119(Google Chrome 72.0.3626.119)
        @神代綺凜 不会,只是比.NET更新稍慢,我自己汉化本上传E之后很快会出现在N.NET上,然后过一天时间出现在.COM上,大佬仔细看下:https://nhentai.com/en/comic/c96-rolling-haiena-takahan-zombie-nikusetsu-eigyou-zombie-land-saga-chinese
  11. 空古幽岚  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 79.0.3945.130(Google Chrome 79.0.3945.130)
    好像今天失效了,没有下载zip选项了
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 79.0.3945.130(Google Chrome 79.0.3945.130)
      @空古幽岚 并没有失效
      1. 空古幽岚  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 79.0.3945.130(Google Chrome 79.0.3945.130)
        @神代綺凜 好吧,我重新启动浏览器就好了,刚刚一直测试开关插件,不行所以说失效了,好像更新了这功能后,100% 视图高度,老是封面不加载,然后进入浏览开关一下这功能,然后刷新才显示缩略图和封面。
  12. AppleMiku  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 78.0.3904.108(Google Chrome 78.0.3904.108)
    谢了,朋友的弟弟说很好用
  13. 楼顶的猫  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 78.0.3904.108(Google Chrome 78.0.3904.108)
    大佬牛逼啊我以前还一直在用Teleport Ultra下..........
    1. 神代綺凜  Mac OS X 10.14.6(Mac OS X 10.14.6) / Google Chrome 78.0.3904.108(Google Chrome 78.0.3904.108)
      @楼顶的猫 r18 是第一生产力
  14. bxm  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 77.0.3865.120(Google Chrome 77.0.3865.120)
    呃,ex现在还能打开的啊,虽然我nh很少去...
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 77.0.3865.90(Google Chrome 77.0.3865.90)
      @bxm 能打开,但我比较喜欢用 nh,所以我只做 nh 相关的
  15. ZeroFoNe  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 76.0.3809.132(Google Chrome 76.0.3809.132)
    ex没了;w;
    现在就剩nh站了
    还有感谢大佬的脚本!
  16. 也忆  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 76.0.3809.132(Google Chrome 76.0.3809.132)
    首先一定要谢谢大佬的脚本,但使用过程中发现些问题,比如下载的ZIP文件里没有带有本子名字的文件夹,只有一连串的JPG文件,如果是一次性下载多个本子的话,一次性解压并不太方便,请问是否可以通过加点代码就可以实现一个ZIP文件里有一个带有本子TITLE的文件档里再含有本子JPG文件? 我现在在看大佬的脚本,但貌似是Javascipt的语言,我并不是很熟悉这语言, 给大佬跪了!能帮助一下吗?
    1. 神代綺凜  Mac OS X 10.14.6(Mac OS X 10.14.6) / Google Chrome 76.0.3809.132(Google Chrome 76.0.3809.132)
      @也忆 你可以在批量选中解压的时候选择“解压到单独的文件夹”,这样会自动创建和压缩文件同名的文件夹
      1. 也忆  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 76.0.3809.132(Google Chrome 76.0.3809.132)
        @神代綺凜 啊,谢谢大佬,一直不知道有这个功能,哈哈哈
  17. gg  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 76.0.3809.132(Google Chrome 76.0.3809.132)
    请问暴力猴为什么不支持呢?
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 76.0.3809.132(Google Chrome 76.0.3809.132)
      @gg 不清楚哦,理论上是通用的,但我只保证在油猴下正常运行
  18. 栗子  Android 9(Android 9) / Google Chrome 75.0.3770.143(Google Chrome 75.0.3770.143)
    请问安卓可以弄这个吗。
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 75.0.3770.142(Google Chrome 75.0.3770.142)
      @栗子 可以是可以,但是没有意义,这个脚本主要在 PC 网页端发挥作用

      安卓有 nhentai 的第三方客户端,例如 NHBooks

  19. rua!  Windows 10(Windows 10) / Firefox 68.0(Firefox 68.0)
    exhentai没了,只有去nhentai了
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 75.0.3770.142(Google Chrome 75.0.3770.142)
      @rua! 所以最近突然多了很多来问我 nhder 的人
  20. 小猪不配齐  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 73.0.3683.86(Google Chrome 73.0.3683.86)
    该评论仅登录用户及评论双方可见
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 73.0.3683.86(Google Chrome 73.0.3683.86)
      @小猪不配齐
      该评论仅登录用户及评论双方可见