🎯 Purpose

Returns the list of properties/domains available to a Google account.

Source: apps/search_console_tools/core/commands/get_account_domains.py.

📥 Input

None.

📤 Output

  • list[str] — domains / property identifiers.

⚙️ How it works

  1. Opens https://search.google.com/search-console/security-issues
  2. Opens the “Search property” dropdown
  3. Collects div[role="option"][aria-label] and tries to extract a domain/property:
    • preferred: data-hinttext
    • fallback: parse aria-label like sc-domain:example.com
    • fallback: use aria-label or inner_text

🧩 Usage inside the system

This result is used to update DomainAccountMapping via Django signals.