Dlsite-doujin-renamer - Dlsite doujin renamer tool with python

Overview

dlsite-doujin-renamer

软件截图

Features

  • 支持深度查找带有 RJ 号的文件夹
  • 支持手动选择文件夹或拖拽文件夹到软件窗口
  • 支持在 config.json 中设置软件配置
  • 支持在 cache.db 中缓存从 dlsite.com 抓取的元数据

Config

示例配置

{
  "scaner_max_depth": 5,
  "scraper_locale": "zh_cn",
  "scraper_connect_timeout": 10,
  "scraper_read_timeout": 10,
  "scraper_sleep_interval": 3,
  "scraper_http_proxy": null,
  "renamer_template": "[maker_name][rjcode] work_name cv_list_str",
  "renamer_exclude_square_brackets_in_work_name_flag": false
}
  • scaner_max_depth 扫描器的扫描深度

  • scraper_locale 刮削器的刮削元数据的语言(["en_us", "ja_jp", "ko_kr", "zh_cn", "zh_tw"] 中的一个)

  • scraper_connect_timeout 刮削器的 requests 连接超时时间(秒)

  • scraper_connect_timeout 刮削器的 requests 读取超时时间(秒)

  • scraper_sleep_interval 刮削器的请求网页的时间间隔(秒)

  • scraper_http_proxy 刮削器的使用的代理(http代理),此项设置为 null 时,将尝试使用系统代理

  • renamer_template 命名器的命名模板,命名器将替换模板中的关键字:

    • rjcode 同人作品的 RJ 号
    • work_name 同人作品的名称
    • maker_id 同人作品的社团 RG 号
    • maker_name 同人作品的社团名称
    • release_date 同人作品的发售日期
    • cv_list_str 同人作品的声优列表

    例如:"renamer_template": "[maker_name] work_name (rjcode)"
    重命名前:RJ149268 哀しみのイき人形
    重命名后:[Hypnotic_Yanh] 哀しみのイき人形《催眠音声・男女版同梱》 (RJ149268)

  • renamer_exclude_square_brackets_in_work_name_flag 命名器的 work_name 中是否排除 【】 及其间的内容

【注】请不要使用 Windows 系统自带的「记事本」编辑配置文件,建议使用 Notepad3Notepad++Visual Studio Code 等专业的文本编辑器。本软件的配置文件 config.json 使用不带 BOM 的标准 UTF-8 编码,但在 Windows 记事本的语境中,所谓的「UTF-8」指的是带 BOM 的 UTF-8。因此,用 Windows 系统自带的记事本编辑配置文件后,会导致本软件无法正确读取配置。

You might also like...
ClickHouse Python Driver with native interface support

ClickHouse Python Driver ClickHouse Python Driver with native (TCP) interface support. Asynchronous wrapper is available here: https://github.com/myma

DataStax Python Driver for Apache Cassandra

DataStax Driver for Apache Cassandra A modern, feature-rich and highly-tunable Python client library for Apache Cassandra (2.1+) and DataStax Enterpri

Python client for Apache Kafka

Kafka Python client Python client for the Apache Kafka distributed stream processing system. kafka-python is designed to function much like the offici

PyMongo - the Python driver for MongoDB

PyMongo Info: See the mongo site for more information. See GitHub for the latest source. Documentation: Available at pymongo.readthedocs.io Author: Mi

Redis Python Client
Redis Python Client

redis-py The Python interface to the Redis key-value store. Python 2 Compatibility Note redis-py 3.5.x will be the last version of redis-py that suppo

Motor - the async Python driver for MongoDB and Tornado or asyncio
Motor - the async Python driver for MongoDB and Tornado or asyncio

Motor Info: Motor is a full-featured, non-blocking MongoDB driver for Python Tornado and asyncio applications. Documentation: Available at motor.readt

A fast PostgreSQL Database Client Library for Python/asyncio.
A fast PostgreSQL Database Client Library for Python/asyncio.

asyncpg -- A fast PostgreSQL Database Client Library for Python/asyncio asyncpg is a database interface library designed specifically for PostgreSQL a

Motor - the async Python driver for MongoDB and Tornado or asyncio
Motor - the async Python driver for MongoDB and Tornado or asyncio

Motor Info: Motor is a full-featured, non-blocking MongoDB driver for Python Tornado and asyncio applications. Documentation: Available at motor.readt

Redis client for Python asyncio (PEP 3156)

Redis client for Python asyncio. Redis client for the PEP 3156 Python event loop. This Redis library is a completely asynchronous, non-blocking client

Comments
  • RJ format has changed

    RJ format has changed

    https://github.com/yodhcn/dlsite-doujin-renamer/blob/main/main.py#L162 behold, dlsite extended RJ format like below. it is bless to us but need a little change. https://www.dlsite.com/maniax/work/=/product_id/RJ01003500.html/

    opened by asuka431 2
  • 增强 CV 列表自定义 + 加入文件夹封面生成功能

    增强 CV 列表自定义 + 加入文件夹封面生成功能

    • 加入自动将文件夹封面修改为作品封面的功能
    • 添加关键字 cv_list_left cv_list_left 用于自定义 CV 列表两侧外括符号
    • 添加配置选项 make_folder_icon 用于自定义是否生成封面
      • 添加配置选项 remove_jpg_file 用于自定义是否删除文件夹中生成的作品封面图(不会影响文件夹封面)
    • 更新 README
    opened by Determancer 0
  • Advice

    Advice

    scraper.py

    • No need _getproxies(). requests will automatically detect xxx_PROXY env
    • use requests.session()

    requirements.txt

    • No need lock versions

    work_metadata.py

    • 下次建议用dataclasses。已有的如果怕改了出问题就算了
    opened by imba-tjd 0
Releases(0.2.5)
Owner
null
Tool for synchronizing clickhouse clusters

clicksync Tool for synchronizing clickhouse clusters works only with partitioned MergeTree tables can sync clusters with different node number uses in

Alexander Rumyantsev 1 Nov 30, 2021
dbd is a database prototyping tool that enables data analysts and engineers to quickly load and transform data in SQL databases.

dbd: database prototyping tool dbd is a database prototyping tool that enables data analysts and engineers to quickly load and transform data in SQL d

Zdenek Svoboda 47 Dec 7, 2022
A tool to snapshot sqlite databases you don't own

The core here is my first attempt at a solution of this, combining ideas from browser_history.py and karlicoss/HPI/sqlite.py to create a library/CLI tool to (as safely as possible) copy databases which may be in use from other applications

Sean Breckenridge 10 Dec 22, 2022
MySQL database connector for Python (with Python 3 support)

mysqlclient This project is a fork of MySQLdb1. This project adds Python 3 support and fixed many bugs. PyPI: https://pypi.org/project/mysqlclient/ Gi

PyMySQL 2.2k Dec 25, 2022
MySQL database connector for Python (with Python 3 support)

mysqlclient This project is a fork of MySQLdb1. This project adds Python 3 support and fixed many bugs. PyPI: https://pypi.org/project/mysqlclient/ Gi

PyMySQL 2.2k Dec 25, 2022
Python interface to Oracle Database conforming to the Python DB API 2.0 specification.

cx_Oracle version 8.2 (Development) cx_Oracle is a Python extension module that enables access to Oracle Database. It conforms to the Python database

Oracle 841 Dec 21, 2022
PubMed Mapper: A Python library that map PubMed XML to Python object

pubmed-mapper: A Python Library that map PubMed XML to Python object 中文文档 1. Philosophy view UML Programmatically access PubMed article is a common ta

灵魂工具人 33 Dec 8, 2022
python-beryl, a Python driver for BerylDB.

python-beryl, a Python driver for BerylDB.

BerylDB 3 Nov 24, 2021
Pure Python MySQL Client

PyMySQL Table of Contents Requirements Installation Documentation Example Resources License This package contains a pure-Python MySQL client library,

PyMySQL 7.2k Jan 9, 2023
A supercharged SQLite library for Python

SuperSQLite: a supercharged SQLite library for Python A feature-packed Python package and for utilizing SQLite in Python by Plasticity. It is intended

Plasticity 703 Dec 30, 2022