{"id":16332891,"url":"https://github.com/eight04/ptt-article-parser","last_synced_at":"2025-10-25T23:30:37.453Z","repository":{"id":31205777,"uuid":"34766737","full_name":"eight04/ptt-article-parser","owner":"eight04","description":"A python tool to parse PTT articles.","archived":false,"fork":false,"pushed_at":"2021-06-30T05:07:56.000Z","size":143,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T11:49:38.454Z","etag":null,"topics":["bbs","cli","ptt","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eight04.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-29T02:01:08.000Z","updated_at":"2022-10-11T12:15:45.000Z","dependencies_parsed_at":"2022-08-26T11:34:05.124Z","dependency_job_id":null,"html_url":"https://github.com/eight04/ptt-article-parser","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Fptt-article-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Fptt-article-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Fptt-article-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Fptt-article-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eight04","download_url":"https://codeload.github.com/eight04/ptt-article-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238223594,"owners_count":19436717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bbs","cli","ptt","python"],"created_at":"2024-10-10T23:33:35.506Z","updated_at":"2025-10-25T23:30:32.181Z","avatar_url":"https://github.com/eight04.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"PTT Article Parser\n==================\n\n.. image:: https://github.com/eight04/ptt-article-parser/actions/workflows/test.yml/badge.svg\n   :target: https://github.com/eight04/ptt-article-parser/actions/workflows/test.yml\n\n一個用來分析 PTT 文章的工具。\n\nFeatures\n--------\n\n* 根據文章標題或 .DIR 檔案，重新命名檔案名稱\n* 白金緩慢增加中\n\nInstall\n-------\n\nFrom `pypi \u003chttps://pypi.org/project/ptt-article-parser/\u003e`__::\n\n\tpip install ptt-article-parser\n\nUsage\n-----\n\n::\n\n  PTT Article Parser (PAP)\n\n  Usage:\n    pap rename [--format=\u003cformat\u003e] [--dir=\u003cfile\u003e] \u003cfile\u003e...\n    pap rename [--format=\u003cformat\u003e] [--dir=\u003cfile\u003e] --interactive\n    pap (--help | --version)\n\n  Options:\n    -v --version          Show version.\n    -h --help             Show this.\n    -f --format=\u003cformat\u003e  Set output format.\n                          [default: [{board}] {title} [{author}] ({time:%Y%m%d%H%M%S}).ans]\n    -d --dir=\u003cfile\u003e       Read additional \".DIR\" file. The tool always tries to\n                          read the \".DIR\" file under the parent folder of the\n                          article. Use this option to read from other locations.\n    -i --interactive      Use interactive mode, get file name from stdin.\n    \u003cfile\u003e                File path. If the file doesn't exists, pap will try to\n                          parse it as glob pattern.\n\nFor example:\n\n::\n\n\tpap rename ./M.*\n\nOutput screenshot\n----------------------\n\n.. image:: http://i.imgur.com/zISlFeP.png\n   :alt: screenshot\n\nChangelog\n---------\n\n* 0.6.0 (Jun 30, 2021)\n\n  - Bump dependencies.\n\n* 0.5.0 (Jun 12, 2018)\n\n  - Update dependencies.\n  - Fix: handle crlf.\n  - Refactor: ptt_article_parser.tools -\u003e ptt_article_parser.rename\n  - Drop uao_decode.py, switch to uao.\n\n* 0.4.0 (Feb 19, 2018)\n\n  - Change: automatically find .DIR file.\n\n* 0.3.0 (Dec 5, 2017)\n\n  - Parse .DIR file, use the title by default.\n\n* 0.2.1 (May 14, 2016)\n\n  - Extract author from old_edits.\n  - Fix installing issue (maybe more?).\n\n* 0.2.0 (Apr 16, 2016)\n\n  - Change how glob pattern work.\n  - Fix same file name bug.\n  - Rewrite. Try matching best result.\n\n* 0.1.0 (Apr 15, 2016)\n\n  - First release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feight04%2Fptt-article-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feight04%2Fptt-article-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feight04%2Fptt-article-parser/lists"}