drissionpage-dev
SKILL.md
DrissionPage Dev
Overview
Use this skill to build reliable DrissionPage automation in Python by following a consistent workflow and consulting the bundled official docs in references/docs/.
Preferences
- Do not use DrissionPage native wait APIs for long “query waiting” flows; instead poll static HTML (
tab.html/ snapshot) and parse withparsel.Selector(or an equivalent HTML parser) to detect state transitions. - Do not rely on DrissionPage native “ready” checks when they are unreliable; instead implement readiness checks by parsing the static DOM for stable page markers (e.g., main content mounted, captcha/overlay shown or gone).
Workflow
1) Clarify the goal and choose a mode
- Prefer
SessionPagewhen the target data is available via HTTP responses and JS rendering is not required. - Prefer
ChromiumPagewhen you must run a real Chromium browser (JS rendering, complex login, anti-bot flows, file dialogs, etc.). - Prefer
WebPagewhen you need both browser control and packet sending/receiving (mode switching) in the same object.