Build a CSS selector matcher utility that uses soupsieve 's CSS selector matching capabilities to find…
Build a CSS selector matcher utility that uses soupsieve 's CSS selector matching capabilities to find…: a task in r2e-code-instruct-qwen3.5 (Harbor dataset). Requirements: - Must use soupsieve.select() to perform CSS matching - Must validate document type (must be BeautifulSoup) and selector…
The task
Requirements: - Must use `soupsieve.select()` to perform CSS matching - Must validate document type (must be BeautifulSoup) and selector (must be non-empty string) - Must convert the CSS matcher iterator to a list of matching elements - Raise `TypeError` for non-BeautifulSoup documents, `ValueError` for invalid…
Part of Essacheez/r2e-code-instruct-qwen3.5.