Skip to main content

Parse Venera exports and sync selected favorites to Bangumi.

Project description

Contributors Forks Stargazers Issues Licence Telegram

Playground Name Screen Shot

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

  1. Install from frok
git clone --branch 2026/05/venera-parser-bangumi-sync https://github.com/bGZo/playground.git
cd playground
pipx install . 
  1. Install from PyPI
pipx install venera-parser-bangumi

Usage

[!NOTE] Use venera-sync-bangumi replace python3 src/parser.py after 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

说明:

  1. ACCESS_TOKEN 只从环境变量读取。
  2. --dry-run 会执行解析、搜索、匹配和当前收藏读取,但不会发写请求。
  3. 当前项目已切换为 click CLI,所有自动验收以 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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'feat(module):add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Top contributors:

contrib.rocks image

License

All code is licensed under the AGPL-3.0 license. See LICENSE for more information.

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

venera_parser_bangumi-0.1.1.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

venera_parser_bangumi-0.1.1-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

Details for the file venera_parser_bangumi-0.1.1.tar.gz.

File metadata

  • Download URL: venera_parser_bangumi-0.1.1.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.0 CPython/3.13.12 Darwin/25.4.0

File hashes

Hashes for venera_parser_bangumi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e98ce00f56aec61d2224605926fb1787c4e5866445103d302d4bbdcc50f9b046
MD5 986ef2733b4c36246eff6026de6d7656
BLAKE2b-256 24dcd7227d92fb283f825b2dededaeee0070db3fba74a631f3010bd7b3ca953f

See more details on using hashes here.

File details

Details for the file venera_parser_bangumi-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for venera_parser_bangumi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da113da92c47c00376b67374353b58e26096f3068ca8e6e70e006d3ee5e6f644
MD5 f4b42694ac207e7f36bc47b3d02c98a3
BLAKE2b-256 a2e2a970b0f8590d484d973a4508b643040de190d8bf820c5c0a936edbc73a34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page