Parse Venera exports and sync selected favorites to Bangumi.
Project description
Venera Parser for Bangumi
A script to parse the data exported from Bangumi's Venera app, which includes users' watching history, ratings, collections, and more. The parsed data can be used for various purposes such as data analysis, visualization, or migration to other platforms.
Quick Start
- Install from frok
git clone --branch 2026/05/venera-parser-bangumi-sync https://github.com/bGZo/playground.git
cd playground
pipx install .
- Install from PyPI
pipx install venera-parser-bangumi
Usage
[!NOTE] Use
venera-sync-bangumireplacepython3 src/parser.pyafter installation from PyPI.
❯ venera-sync-bangumi --help
Usage: venera-sync-bangumi [OPTIONS] COMMAND [ARGS]...
Parse Venera exported archives and sync selected
favorites to Bangumi.
Options:
--help Show this message and exit.
Commands:
dump
summary
sync-bangumi
Parser
# 查看摘要
python3 src/parser.py summary 20575-2273.venera
# 导出完整 JSON
python3 src/parser.py dump 20575-2273.venera --include-rows --pretty -o venera_dump.json
# 连 cookie.db 一起解析
# 在上面的命令后追加 --include-cookie-db
Bangumi Sync
# 安装运行依赖
python3 -m pip install -e .
# dry-run,同步本地 DONE 表到 Bangumi done
export ACCESS_TOKEN="your-token"
python3 src/parser.py sync-bangumi 20575-2273.venera --sync DONE=done --dry-run
# 同步多个表,并输出审计报告
python3 src/parser.py sync-bangumi 20575-2273.venera \
--sync Doing=doing \
--sync DONE=done \
--dry-run \
--report-output reports/dry-run.json
说明:
ACCESS_TOKEN只从环境变量读取。--dry-run会执行解析、搜索、匹配和当前收藏读取,但不会发写请求。- 当前项目已切换为
clickCLI,所有自动验收以pytest为准。
Tests
python3 -m pytest
Contributing
Any contributions made are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'feat(module):add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Top contributors:
License
All code is licensed under the AGPL-3.0 license. See LICENSE for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file venera_parser_bangumi-0.1.2.tar.gz.
File metadata
- Download URL: venera_parser_bangumi-0.1.2.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.0 CPython/3.13.12 Darwin/25.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68411fd5a4fe47dc6183485e4aaabf226e20ce4d1c058fcb01cfa20c91db0a03
|
|
| MD5 |
63e2a9eeff85d9ee6b33136c0b270aaa
|
|
| BLAKE2b-256 |
829ab009289445e44dcab694b95ff45cd12269ff1fdd2ffd2fad857f54234350
|
File details
Details for the file venera_parser_bangumi-0.1.2-py3-none-any.whl.
File metadata
- Download URL: venera_parser_bangumi-0.1.2-py3-none-any.whl
- Upload date:
- Size: 33.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.0 CPython/3.13.12 Darwin/25.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac9bc980c6d2c32ae02ea9d04d7e19096ec846569cb8756489089c363717ee73
|
|
| MD5 |
baa659578a8549f6c446c5a9798c3b1f
|
|
| BLAKE2b-256 |
8df6f86001d9a2876f445b23808746b471e2cc2bb6473bd6029e6b724c1534ab
|