GithubHelp home page GithubHelp logo

yodhcn / dlsite-doujin-renamer Goto Github PK

View Code? Open in Web Editor NEW
255.0 3.0 18.0 530 KB

「DLsite 同人作品重命名工具」依据 RJ|VJ|BJ 号从 dlsite.com 爬取 "标题" 和 "社团" 等信息,按照自定义模板对文件夹批量格式化命名,并将文件夹封面修改为作品封面。

License: GNU General Public License v3.0

Python 100.00%
requests pyquery pyinstaller wxpython peewee sqlite dlsite

dlsite-doujin-renamer's People

Contributors

determancer avatar hiroi-sora avatar mengzonefire avatar yodhcn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dlsite-doujin-renamer's Issues

爬取元数据失败

爬取元数据失败[ConnectionError]:HTTPSConnectionPool(host='www.dlsite.com', port=443): Max retries exceeded with url: /maniax/api/=/product.json?workno=RJ281027&locale=zh_cn (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000193B7E69CD0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')))

Suggestion:

Could you please make the series name available as renamer template?

建议捕获更多异常并输出显示

            except RequestException as err:
                Renamer.__handle_request_exception(rjcode, '爬取元数据', err)  # 爬取元数据失败
            except Exception as e:
                Renamer.logger.error(f'[{rjcode}] -> 失败[Exception]:{str(e)}\n')

/////////////////////

                except OSError as err:
                    Renamer.logger.error(f'[{rjcode}] -> 修改封面失败[OSError]:{str(err)}\n')
                except Exception as e:
                    Renamer.logger.error(f'[{rjcode}] -> 失败[Exception]:{str(e)}\n')

/////////////////////
因为给定一些错误RJ号时运行错误且无显示,会傻芙芙的等着
例如 RJ425000 RJ334000
[RJ425000] -> 失败[Exception]:'NoneType' object is not subscriptable
[RJ334000] -> 失败[Exception]:local variable 'metadata' referenced before assignment

cv_list的自定义格式

虽然目前已经能自定义cv名字之间的间隔符号,但cv名串外仍默认为半角括号。
希望将这部分也加入到可自定义的范围内。

cv_list_str = '(' + self.__delimiter.join(cv_list) + ')' if len(cv_list) > 0 else ''

希望加入对excel的支持

是否可以将软件与excel进行联动
功能如下,向添加excel中添加新音声文件夹命名
若excel中存在该音声,则从excel中获取名称命名(有些音声标题可能经过翻译,但官方标题未翻译)

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。已有的如果怕改了出问题就算了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.