skillfed

dbapi

基于爬虫的豆瓣API SDK

dbapi v0.0.14 116.1K downloads/30d#12,220 on PyPI27
Permissive license MIT Active released

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 on this page — 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

dbapi on PyPI

pip

pip install dbapi

uv

uv add dbapi

poetry

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 <group_alias> <_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 not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — lxml
Maintenance actively maintained — 2,604 days since the last release
Last repo commit
First released
Downloads 116,072/month — #12,220 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: dbapi-0.0.14-py3-none-any.whl

Keywords: 豆瓣, douban, 豆瓣小组, api

Tags

douban api clientdouban command linedouban group apidouban social apichinese social network apidouban cli tooldouban people photos
cli-toolweb-scrapingchinese-services

More Internet packages