🎯 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
- Opens
https://search.google.com/search-console/security-issues - Opens the “Search property” dropdown
- Collects
div[role="option"][aria-label]and tries to extract a domain/property:- preferred:
data-hinttext - fallback: parse
aria-labellikesc-domain:example.com - fallback: use
aria-labelorinner_text
- preferred:
🧩 Usage inside the system
This result is used to update DomainAccountMapping via Django signals.