skills/modelscope.cn/drissionpage-dev

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 with parsel.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 SessionPage when the target data is available via HTTP responses and JS rendering is not required.
  • Prefer ChromiumPage when you must run a real Chromium browser (JS rendering, complex login, anti-bot flows, file dialogs, etc.).
  • Prefer WebPage when you need both browser control and packet sending/receiving (mode switching) in the same object.
Installs
1
First Seen
9 days ago