一個用來分析 PTT 文章的工具。
Features
根據文章標題或 .DIR 檔案,重新命名檔案名稱
白金緩慢增加中
Install
From pypi:
pip install ptt-article-parser
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.6.0 (Jun 30, 2021)
Bump dependencies.
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.
Metadata
Release files for ptt-article-parser 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ptt-article-parser-0.6.0.tar.gz | 6.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ptt_article_parser-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / ptt-article-parser-0.6.0.tar.gz
| Download URL | ptt-article-parser-0.6.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e5cc84d71685813b889e5cb70ac74c5b83a291ae94e4166f234a603d553f60d
|
|
BLAKE2b-256 checksum How to use checksums |
789fb6a11a3ad1e9e81b06e2173e19ab6f1f7823702685578b419ead06662eef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.1
|
Release files / ptt_article_parser-0.6.0-py3-none-any.whl
| Download URL | ptt_article_parser-0.6.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cdd40978c52785c874182b44b9f099536da04d2513a373472b83a7923ebf347b
|
|
BLAKE2b-256 checksum How to use checksums |
b2773041242766bdb72a99e2350edff8fd949accd345283c9ac8d0e799736cf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.1
|
Security for ptt-article-parser 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.