{"id":16332777,"url":"https://github.com/eight04/ptt-mail-backup","last_synced_at":"2025-07-05T01:33:09.572Z","repository":{"id":49048584,"uuid":"136954379","full_name":"eight04/ptt-mail-backup","owner":"eight04","description":"一個用來抓取 PTT 站內信的 BBS Bot","archived":false,"fork":false,"pushed_at":"2024-02-28T11:20:31.000Z","size":65,"stargazers_count":7,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T15:43:33.850Z","etag":null,"topics":["bbs","cli","crawler","ptt","ptt-crawler","python","python3"],"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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-06-11T16:43:39.000Z","updated_at":"2023-10-24T15:39:27.000Z","dependencies_parsed_at":"2024-02-28T11:26:04.728Z","dependency_job_id":"ffcdeb04-82f5-435d-8dd5-66432da84299","html_url":"https://github.com/eight04/ptt-mail-backup","commit_stats":{"total_commits":60,"total_committers":1,"mean_commits":60.0,"dds":0.0,"last_synced_commit":"77713cea2eddcbf3d6b9db69823e5feb2334a04f"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Fptt-mail-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Fptt-mail-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Fptt-mail-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Fptt-mail-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eight04","download_url":"https://codeload.github.com/eight04/ptt-mail-backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245036111,"owners_count":20550661,"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","crawler","ptt","ptt-crawler","python","python3"],"created_at":"2024-10-10T23:32:54.804Z","updated_at":"2025-03-22T23:31:56.132Z","avatar_url":"https://github.com/eight04.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ptt-mail-backup\n===============\n\n.. image:: https://travis-ci.com/eight04/ptt-mail-backup.svg?branch=master\n    :target: https://travis-ci.com/eight04/ptt-mail-backup\n    \n一個用來備份 PTT 站內信的 CLI 工具。不會再因為站內信打包失敗而把信箱塞爆一整個禮拜。\n\nFeatures\n--------\n\n* 使用 SSH 連上 PTT，再一頁頁爬\n* 下載回來的檔案為 Big5-UAO 編碼\n* 支援自動換行、寬度大於 80 的文章\n* 支援上色、閃爍、雙色字\n\nInstallation\n------------\n\n\u003e NOTE: This package requires python 3.7+\n\nFrom `PYPI \u003chttps://pypi.org/project/ptt-mail-backup/\u003e`__:\n\n::\n\n  pip install ptt-mail-backup\n  \nUsage\n-----\n\n執行 ``ptt-mail-backup ...``::\n\n  usage: ptt-mail-backup [-h] [-u USER] [-p PASSWORD] [-d DEST] [-v]\n                         [-f FILENAME_FORMAT] (-r START END | --all)\n\n  Backup PTT mail.\n\n  optional arguments:\n    -h, --help            show this help message and exit\n    -u USER, --user USER  username, otherwise prompt for the value.\n    -p PASSWORD, --pass PASSWORD\n                          password, otherwise prompt for the value.\n    -d DEST, --dest DEST  save to dest. Default: '.'\n    -v, --verbose         print verbose message.\n    -f FILENAME_FORMAT, --filename-format FILENAME_FORMAT\n                          filename format. Default: '{index}. [{board}] {title}\n                          [{author}] ({time:%Y%m%d%H%M%S}).ans'\n    -r START END, --range START END\n                          specify a range (inclusive). Negative values and zeros\n                          are allowed, they are treated as (last_index + value)\n                          i.e. --range 0 0 would download the last mail. This\n                          option could be used multiple times.\n    --all                 download all\n\n或是 ``python -m ptt_mail_backup ...``。\n\n範例\n~~~~\n\n下載所有信件到 2018-06-12 資料夾::\n\n  ptt-mail-backup -d 2018-06-12 --all\n  \n下載最新的十封信件::\n\n  ptt-mail-backup -r -9 0\n  \n從 CLI 傳入使用者名稱、密碼，並下載最舊的信件::\n\n  ptt-mail-backup -u myusername -p mypassword -r 1 1\n  \nLicense\n-------\n\nThe distributed package `includes a branch of pyte \u003chttps://github.com/eight04/pyte/tree/dev-blink\u003e`__ which supports blinking text. ``pyte`` is licensed under LGPL v3 and ``ptt_mail_backup`` itself is licensed under MIT.\n      \nChangelog\n---------\n\n* 0.6.0 (Feb 28, 2024)\n\n  - Bump dependencies.\n  - Change: require python 3.7+.\n  - Fix: issues with wcwidth 0.2.13.\n\n* 0.5.0 (Feb 3, 2024)\n\n  - Bump dependencies.\n  - Fix: hang while refreshing screen.\n\n* 0.4.0 (Jun 30, 2021)\n\n  - Bump dependencies\n  - Fix: hang while fetching index\n\n* 0.3.0 (Aug 26, 2019)\n\n  - Breaking: stop relying on the footer information.\n  - Fix: unable to download articles including ``**s`` or ``**n``.\n\n* 0.2.3 (Aug 21, 2019)\n\n  - Fix: handle login views.\n\n* 0.2.2 (Nov 18, 2018)\n\n  - Fix: Support Python 3.7.\n\n* 0.2.1 (Jul 25, 2018)\n\n  - Fix: handle ``mailbox is full`` message.\n  - Fix: handle ``add new board to favorite`` message.\n\n* 0.2.0 (Jun 22, 2018)\n\n  - The distributed package now includes ``pyte`` with blinking text support.\n  - Add: a better way to get full title.\n  - Add: allow multiple ``--range``.\n  - Fix: handle password error.\n  - Fix: handle article recovery screen.\n  - Fix: handle password attack alert screen.\n\n* 0.1.1 (Jun 12, 2018)\n\n  - Fix: missing deps.\n\n* 0.1.0 (Jun 12, 2018)\n\n  - First release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feight04%2Fptt-mail-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feight04%2Fptt-mail-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feight04%2Fptt-mail-backup/lists"}