Skip to main content

A renaming tool for PTT articles

Project description

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.

Dependencies
------------

* docopt
* safeprint

Changelog
---------

* 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.0.zip (110.0 kB view details)

Uploaded Source

Built Distribution

ptt_article_parser-0.2.0-py3-none-any.whl (108.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ptt-article-parser-0.2.0.zip
Algorithm Hash digest
SHA256 555832312228fc9dc9eb623f6a7c37a4892da2e9c54c70843e6f5fdea58713da
MD5 96b6d340f174c9bf3a9742a88bd6170b
BLAKE2b-256 1c56c151286a75976bce1df1ce9f45c5733fcede66852f53425a92db1377b18f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ptt_article_parser-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a18cdfadf7c7ec59c3bed99ce60e95e653bb58ece90a19d59aa4d5e615fe6c5
MD5 88242386f4dadf1c2d5c4b70163bd44f
BLAKE2b-256 8fa17d8b9fed297ecfe1904d1b3ec8b014e6740945bd1421b107d56e54479bff

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