Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A renaming tool for PTT articles

Project Description

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

Features

  • 根據文章標題或 .DIR 檔案,重新命名檔案名稱
  • 白金緩慢增加中

Install

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>       Location of ".DIR" file. [default: ./.DIR]
  -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

Notes

Todos

  • Identify article part and pushes part.

Changelog

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

Release History

This version
History Node

0.3.0

History Node

0.2.1

History Node

0.2.0

History Node

0.1.0

History Node

0.0.0

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
ptt_article_parser-0.3.0-py3-none-any.whl
(109.4 kB) Copy SHA256 Hash SHA256
py3 Wheel Dec 4, 2017
ptt-article-parser-0.3.0.tar.gz
(107.7 kB) Copy SHA256 Hash SHA256
Source Dec 4, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting