--- id: dbapi version: "0.0.14" license: MIT license_treatment: permissive maintenance: active --- # dbapi — 基于爬虫的豆瓣API SDK License: permissive · Maintenance: active · Downloads: 116.1K/mo ## What it is and what it does dbapi is a command-line client for Douban, a Chinese social platform, built on web scraping rather than an official API. It exposes Douban's group discussions, user profiles, photos, and status updates through a CLI interface, allowing you to perform actions like joining groups, posting topics, liking photos, and managing comments from the terminal. The package depends on lxml for HTML parsing and provides a broad command surface covering group operations (add/remove topics, manage comments, search), people operations (manage albums and photos, track contacts), and session management (login, logout, cache). It is maintained but has not received updates since 2019, meaning it may face compatibility issues if Douban has changed its site structure or security practices. Use it for: - Automate bulk operations on Douban groups or personal content from scripts or cron jobs. - Build a bot or integration that monitors or posts to Douban groups programmatically. - Manage Douban social interactions (likes, comments, follows) via command-line workflows. - Scrape or export Douban group discussions and user data for analysis or archival. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Command-line client for interacting with Douban (豆瓣) social features including groups, people, photos, and status updates via a wrapper around Douban's web API. Yes, if you actively use Douban and need CLI automation for group or social operations, and you can verify the scraper still works against the current site. No, if you require a well-maintained, actively updated package—the last release was 2019 and no fixes have shipped since, so expect potential breakage from site changes. Conditional on testing against your Douban use case first. ## Install pip install dbapi uv add dbapi poetry add dbapi ## Installing dbapi Before you install: Low install friction with a single runtime dependency (lxml). Maintenance status is active, though the latest release was in 2019 and no updates have shipped since then despite the repository remaining open. License in practice: MIT license is permissive and imposes no significant restrictions on use, modification, or distribution. Quickstart: pip install dbapi dbapi login dbapi group list_topics <_type> Requires a Douban account and active login credentials; the package wraps Douban's web interface and may break if Douban changes its HTML structure. Verify before relying: - Whether Douban's web scraping-based approach still works reliably given potential site structure changes since 2019. - Python version compatibility—requires_python is unspecified in the package metadata. - Current functionality of authentication and session management given Douban's potential security updates. ## Package facts - License: MIT (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 116.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags douban api client, douban command line, douban group api, douban social api, chinese social network api, douban cli tool, douban people photos, cli-tool, web-scraping, chinese-services [View on SkillFed](https://skillfed.io/packages/dbapi) · [View on PyPI](https://pypi.org/project/dbapi/)