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无法打开ServletContext资源[/WEBINF/mvcdispatcherservlet.xml]   java中的超时方法   java在ext2文件系统的根目录中创建新文件   java Oracle BPM 12c使用人工任务启动器的外部UI发送404弹出窗口   java获取组织。阿帕奇。hadoop。蜂箱ql.exec。矢量。DecimalColumnVector无法强制转换为org。阿帕奇。hadoop。蜂箱ql.exec。矢量。长柱向量   JavaGradle:向JAR文件的类路径添加类   playframework 2.0调用java中的scala操作来编写单元测试用例   循环Java在出现提示时无法收集字符串   需要帮助在Java中将数字转换为word吗   为什么人们忽视了java。类路径和。项目   使用快速搜索框的java动态安卓搜索   java Log4j未正确压缩   图像如何在grails/java中将PNG转换为jpeg   java以前使用过不同的监视器   EclipseLink对实体“setter”方法的java多次调用   javascript动态设置下拉列表的选定默认值   java如何从可扩展列表视图中删除子级   java中的单元测试