Metadata-Version: 2.0
Name: ptt-article-parser
Version: 0.2.1
Summary: A renaming tool for PTT articles
Home-page: https://github.com/eight04/ptt-article-parser
Author: eight
Author-email: eight04@gmail.com
License: MIT
Keywords: ptt article parser
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Environment :: Win32 (MS Windows)
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: Chinese (Traditional)
Classifier: Operating System :: Microsoft :: Windows :: Windows 7
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Terminals
Requires-Dist: docopt (~=0.6.2)
Requires-Dist: safeprint (~=0.1.1)

PTT Article Parser
==================

一個用來分析 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
----------------------

.. image:: http://i.imgur.com/zISlFeP.png
   :alt: screenshot

Notes
-----

* Big5UAO decoder was forked from `andycjw/uao_decode.py <https://gist.github.com/andycjw/5617496>`__.

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.


