Skip to main content

A renaming tool for PTT articles

Project description

一個用來分析 PTT 文章的工具。

Features

  • 根據文章標題,重新命名檔案名稱

  • 白金緩慢增加中

Install

pip install ptt-article-parser

Usage

Usage:
  pap rename [--format=<format>] <file>...
  pap rename [--format=<format>] --interactive
  pap --help

Options:
  -h --help             Show this.
  -f --format=<format>  Set output format.
                                                [default: [{board}] {title} [{author}] ({time:%Y%m%d%H%M%S}).ans]
  -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

screenshot

Notes

Todos

  • Identify article part and pushes part.

Changelog

  • 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.

Source Distribution

ptt-article-parser-0.2.1.zip (109.8 kB view details)

Uploaded Source

Built Distribution

ptt_article_parser-0.2.1-py3-none-any.whl (108.4 kB view details)

Uploaded Python 3

File details

Details for the file ptt-article-parser-0.2.1.zip.

File metadata

File hashes

Hashes for ptt-article-parser-0.2.1.zip
Algorithm Hash digest
SHA256 9a9194bd4e6c68eaed017f01dd8eab5829f4c61668951082d63072e86780fb20
MD5 5c766f18866ac20a7c8b2eeedfbb28ec
BLAKE2b-256 8bbdb5d379502ca782bc1f80a6c30e0accafb0301d1bb048c69a0c92ba6c8cb1

See more details on using hashes here.

File details

Details for the file ptt_article_parser-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ptt_article_parser-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 02eccebdb7b8042f58971e647c513c14fbeedb9aca6f75ef7d21ec6207389e5e
MD5 a7255dc88bd306786089491dd96d52ac
BLAKE2b-256 2658fb2f03c1deb6ade349fc5f9f2558d3f98575fb04e618812a42cf72f7fdfd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page