dbapi
基于爬虫的豆瓣API SDK
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 dbapiuv
uv add dbapipoetry
poetry add dbapiInstalling 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
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
elasticsearch-dbapiProvides DBAPI (PEP-249) and SQLAlchemy dialect…
permissive · top 5,000 on PyPI
databricks-dbapiProvides a DBAPI 2.0 connection interface and…
permissive · top 15,000 on PyPI
ydb-dbapiA Python DBAPI driver for YDB that provides…
unclear · top 5,000 on PyPI
djoserProvides Django REST Framework views for user…
permissive · top 15,000 on PyPI
pephubclientPEPHubClient provides a Python API and…
permissive · top 15,000 on PyPI
pyhdbA pure Python client library for connecting to…
permissive · top 15,000 on PyPI
django-loginasAdds a "Log in as user" button to the Django…
permissive · top 5,000 on PyPI
presto-python-clientProvides a Python DBAPI-compatible client to…
permissive · top 5,000 on PyPI
fastapi-auth0Integrates Auth0 authentication into FastAPI…
permissive · top 15,000 on PyPI
supabasePython client library for Supabase that…
permissive · top 1,000 on PyPI