ptt文章的改名工具

ptt-article-parser的Python项目详细描述


一、PTT语言

功能

  • 新南威尔士州迪尔
  • 中新网

安装

>;来自pypi

pip install ptt-article-parser

用法

PTT Article Parser (PAP)

Usage:
  pap rename [--format=<format>] [--dir=<file>] <file>...
  pap rename [--format=<format>] [--dir=<file>] --interactive
  pap (--help | --version)

Options:
  -v --version          Show version.
  -h --help             Show this.
  -f --format=<format>  Set output format.
                        [default: [{board}] {title} [{author}] ({time:%Y%m%d%H%M%S}).ans]
  -d --dir=<file>       Read additional ".DIR" file. The tool always tries to
                        read the ".DIR" file under the parent folder of the
                        article. Use this option to read from other locations.
  -i --interactive      Use interactive mode, get file name from stdin.
  <file>                File path. If the file doesn't exists, pap will try to
                        parse it as glob pattern.

例如:

pap rename ./M.*

输出屏幕截图

screenshot

更改日志

  • 0.5.0(2018年6月12日)
    • 更新依赖项。
    • 修复:处理CRLF。
    • 重构:ptt_article_parser.tools->;ptt_article_parser.rename
    • 放下uao_decode.py,切换到uao。
  • 0.4.0(2018年2月19日)
    • 更改:自动查找.dir文件。
  • 0.3.0(2017年12月5日)
    • parse.dir文件,默认使用标题。
  • 0.2.1(2016年5月14日)
    • 从旧编辑中提取作者。
    • 修复安装问题(可能更多?).
  • 0.2.0(2016年4月16日)
    • 更改全局模式的工作方式。
    • 修复相同的文件名错误。
    • 重写。尝试匹配最佳结果。
  • 0.1.0(2016年4月15日)
    • 第一次释放。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java筛选hibernate中引用的属性   java如何在Bluej中创建以long(integer)为参数的对象   java如何通过JDBC在access中创建新字段   java如何获取格式化日期?   用模板方法模式设计过滤器接口   java编译错误:缺少返回语句   java从JOOQ中的代码生成中排除特定的模式   java小程序生命周期:init()和start()与destroy()和stop()之间的实际区别是什么?   如何在Java中获取类的所有公共静态方法?   匿名onClick方法内的java活动结果   java如何从数千个具有良好性能的寄存器构建excel工作表?   标记Java中多级中断的适当使用   网络化基于Java的Telnet代理服务器,支持TLS。但为什么是java。网SocketException:连接被拒绝   java将magnolia升级到5.6.1,vaadin资源   springcloudnetflixhystrix中的java重写HystrixCommandSpect bean