A renaming tool for PTT articles
Project description
一個用來分析 PTT 文章的工具。
Features
- 根據文章標題或 .DIR 檔案,重新命名檔案名稱
- 白金緩慢增加中
Usage
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.
For example:
pap rename ./M.*
Output screenshot
Changelog
- 0.5.0 (Jun 12, 2018)
- Update dependencies.
- Fix: handle crlf.
- Refactor: ptt_article_parser.tools -> ptt_article_parser.rename
- Drop uao_decode.py, switch to uao.
- 0.4.0 (Feb 19, 2018)
- Change: automatically find .DIR file.
- 0.3.0 (Dec 5, 2017)
- Parse .DIR file, use the title by default.
- 0.2.1 (May 14, 2016)
- Extract author from old_edits.
- Fix installing issue (maybe more?).
- 0.2.0 (Apr 16, 2016)
- Change how glob pattern work.
- Fix same file name bug.
- Rewrite. Try matching best result.
- 0.1.0 (Apr 15, 2016)
- First release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size ptt_article_parser-0.5.0-py3-none-any.whl (9.9 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size ptt-article-parser-0.5.0.tar.gz (5.9 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for ptt_article_parser-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41fff8f59b01498b4621eff4193eb411867bc546ff596cecb81d7503abe61616 |
|
MD5 | 2f36cad34f314190a0779b3ad65e47fd |
|
BLAKE2-256 | c252aacefd434d9e5438ca13f1128c64614c779b73dae46661835e0dba180245 |