{"id":50994926,"url":"https://github.com/nixliuxin/tieba-time-machine","last_synced_at":"2026-06-20T08:01:51.424Z","repository":{"id":362046011,"uuid":"1254598626","full_name":"nixliuxin/Tieba-Time-Machine","owner":"nixliuxin","description":"百度贴吧时光机 - 全量归档与本地阅读工具 | Archive entire Baidu Tieba forums and read them offline","archived":false,"fork":false,"pushed_at":"2026-06-02T11:05:52.000Z","size":2399,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-02T11:25:27.744Z","etag":null,"topics":["archive","baidu","digital-archiving","fastapi","offline-reader","preservation","react","scraper","sqlite","tieba"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/nixliuxin.png","metadata":{"files":{"readme":"README.en.md","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":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-30T19:16:22.000Z","updated_at":"2026-06-02T11:05:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nixliuxin/Tieba-Time-Machine","commit_stats":null,"previous_names":["nixliuxin/tieba-time-machine"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nixliuxin/Tieba-Time-Machine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixliuxin%2FTieba-Time-Machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixliuxin%2FTieba-Time-Machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixliuxin%2FTieba-Time-Machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixliuxin%2FTieba-Time-Machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nixliuxin","download_url":"https://codeload.github.com/nixliuxin/Tieba-Time-Machine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nixliuxin%2FTieba-Time-Machine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34561766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["archive","baidu","digital-archiving","fastapi","offline-reader","preservation","react","scraper","sqlite","tieba"],"created_at":"2026-06-20T08:01:50.706Z","updated_at":"2026-06-20T08:01:51.409Z","avatar_url":"https://github.com/nixliuxin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"right\"\u003e\n  \u003ca href=\"README.md\"\u003e简体中文\u003c/a\u003e ·\n  \u003cstrong\u003eEnglish\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/logo.gif\" alt=\"Baidu Tieba\" width=\"200\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eTieba Time Machine\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\u003ccode\u003eTieba-Time-Machine\u003c/code\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003ePosts sink. Memories don't.\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/python-%E2%89%A53.11-blue?style=flat-square\u0026logo=python\u0026logoColor=white\" alt=\"Python\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-green?style=flat-square\" alt=\"License\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/platform-Windows%20%7C%20Linux%20%7C%20macOS-lightgrey?style=flat-square\" alt=\"Platform\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/serverless-runs%20locally-8B5CF6?style=flat-square\" alt=\"Local\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Salvaging the collective memory of the internet.\u003cbr\u003e\n  Archive entire Baidu Tieba forums and read them offline.\n\u003c/p\u003e\n\n---\n\n## Features\n\n- **Full archive** — Bulk download by forum or user, with resume support and auto rate-limiting\n- **Smart merge** — Consolidate scattered data into a unified SQLite database (with FTS5 full-text index)\n- **Media packing** — Bundle images/videos into tar with random-access index, no extraction needed\n- **Integrity check** — PAR2 parity protection for archive durability and corruption recovery\n- **Local reader** — FastAPI + React reader, opens instantly in your browser\n- **Zero server** — Runs entirely on your machine, never uploads data anywhere\n- **Open source** — Fully auditable code, no telemetry or tracking\n\n**Pipeline:** Scrape → merge into master.db → pack media → PAR2 verification → local reading\n\n\u003e After a successful merge, raw scraped files are deleted by default (`--keep-raw` to retain).  \n\u003e The archive is the single source of truth — incremental updates and schema migrations operate directly on it.\n\n---\n\n## Quick Start\n\n```bash\ngit clone https://github.com/nixliuxin/Tieba-Time-Machine.git\ncd Tieba-Time-Machine\n\n# Python dependencies\npip install -e .\n\n# Frontend (optional, for the reader only)\ncd frontend \u0026\u0026 pnpm install \u0026\u0026 cd ..\n```\n\n**Requirements:** Python 3.11+ / Node.js 18+ (optional) / par2cmdline-turbo (optional)\n\n### 1. Scrape a forum\n\n```bash\ntieba scrape 魔兽世界 -o ./data/魔兽世界\n```\n\nFirst run prompts for BDUSS (Baidu login credential). Supports resume — interrupt anytime, continue next run.\n\n### 2. Process archives\n\n```bash\ntieba pipeline -s ./data -o ./archives\n```\n\nAutomatically: merge database → pack media → generate PAR2.\n\n### 3. Start the reader\n\n```bash\ntieba serve ./archives\n# Open http://localhost:8900\n```\n\n---\n\n## Data Structure\n\nEach archived forum produces a self-contained directory:\n\n```\narchives/\u003cforum_name\u003e/\n├── master.db          SQLite database (posts/users/FTS5 full-text index)\n├── media.tar          Media bundle (uncompressed, random-access via index)\n├── media_index.json   Offset index for files inside tar\n└── media.tar.par2     PAR2 parity files\n```\n\n---\n\n## Acknowledgments\n\n| Project | Author | Contribution |\n|---------|--------|--------------|\n| [Sorceresssis/TiebaScraper](https://github.com/Sorceresssis/TiebaScraper) | Sorceresssis | Original archive engine, per-thread scraping and content.db schema |\n| [Sorceresssis/TiebaReader](https://github.com/Sorceresssis/TiebaReader) | Sorceresssis | Offline reader schema design and frontend concept |\n| [TiebaMeow/TiebaScraper](https://github.com/TiebaMeow/TiebaScraper) | TiebaMeow | High-performance server-side scraping architecture |\n| [aiotieba](https://github.com/Starry-OvO/aiotieba) | Starry-OvO | Async Tieba API core library |\n| [atom63/cipher-boilerplate](https://github.com/atom63/cipher-boilerplate) | atom63 | Frontend UI framework and component system |\n\n---\n\n## Disclaimer\n\n- This tool runs locally and **never uploads any data to external servers**\n- \"Baidu Tieba\" is a registered trademark of Baidu, Inc. This project is not affiliated with Baidu\n- User-generated content copyright belongs to the original authors\n- For **personal, non-commercial use only**. Users assume all legal responsibility\n- Provided \"AS IS\" without warranty of any kind\n\n---\n\n## License\n\nMIT (c) 2026 Nix Liu Xin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixliuxin%2Ftieba-time-machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnixliuxin%2Ftieba-time-machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnixliuxin%2Ftieba-time-machine/lists"}