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如何格式化servlet响应以生成HTML中“accept”参数可接受的媒体类型?   java如何使用JasperReports为单个报表传递多个结果集?   EclipseVBA到JAVA链接   java如何为Gradle中的不同配置配置PMD规则集?   在给出正确答案之前,是否要求回答?Java Eclipse   java查询SearchView崩溃(尝试实现SearchView操作栏)   java为什么跳过我的IF语句?   java循环以获取与输入值最接近的对象   java默认构造函数真正做什么?   java我需要测试类中的测试方法吗   java如何在代码中滚动滚动窗格?   java我需要获得发布和调试证书指纹的帮助   javascript如何在JS中取消Java“DES/CBC/PKCS5Padding”?