Skip to content

About

Download album and introduction in the page of works, format names of works forders

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

getDLsiteIntro

Download album and introduction in the page of works, format names of works forders. Support 6-digi and 8-digi RJ-code
获取DLsite作品页面的相册与文字介绍,并重命名作品文件夹。支持6位和8位RJ号。

功能特性

  • 自动识别翻译版:有翻译版时文件夹命名为 原版RJ号 + 翻译标题(优先简中,无简中取繁中),无翻译版保持 RJ号 + 原版标题
  • 图片一律从原版(日文)页面下载;原版与翻译版简介都保留({RJ}_intro.txt)
  • 并行下载图片与并行处理多个文件夹,大幅提升速度
  • 全局请求限速(默认 0.8 秒间隔,可调 REQUEST_INTERVAL),防止被 DLsite 判定为 DDoS

使用说明

1 安装python 3.8以上环境(只测试过3.8以上版本)
2 更新pip,安装requests,pillow,bs4,lxml库
3 下载getDLsiteIntro.py文件,并放到待处理文件夹目录
4 设置代理环境变量 DL_PROXY_URL(代理地址,代码中不写死代理IP/端口;未设置时使用系统代理,都没有则直连)。Windows 下可在命令行执行:
setx DL_PROXY_URL "http://你的代理主机:端口" (设置后需重新打开终端)
5 双击运行,或使用python getDLsiteIntro.py运行。MP3归档文件夹自动创建在当前目录下的 Voice MP3(仅创建文件夹,程序并不会自动提取MP3文件),如需关闭请修改create_MP3_folder

可调参数(文件顶部)

  • create_MP3_folder:是否创建 MP3 归档文件夹
  • IMG_WORKERS:图片下载并发线程数(默认8)
  • FOLDER_WORKERS:文件夹处理并发线程数(默认4)
  • REQUEST_INTERVAL:全局HTTP请求最小间隔秒数(默认0.8,调大更安全)

Instructions

1 Install python 3.8 or above (only tested 3.8 or above)
2 Update pip, install requests, pillow, bs4, lxml library
3 Download getDLsiteIntro.py file and put it in the folder directory containing "RJxxxxxx" folders
4 Set the proxy via environment variable DL_PROXY_URL (e.g. http://your-proxy-host:port); the script uses your system proxy if unset, or connects directly if none. The proxy IP/port is not hard-coded in the script.
5 Double-click to run, or use python getDLsiteIntro.py to run. The MP3 archive folder is created under the current directory as Voice MP3 (folder only, no auto-extraction). Set create_MP3_folder to False to disable.

About

Download album and introduction in the page of works, format names of works forders

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages