Task: Extract Element IDs Using BeautifulSoup
Task: Extract Element IDs Using BeautifulSoup: a task in Terminal-Lego-15k (Harbor dataset). You are working with BeautifulSoup to parse HTML and extract element IDs. A common mistake when using BeautifulSoup is attempting to access an element's id attribute using tag.id , which returns None …
The task
You are working with BeautifulSoup to parse HTML and extract element IDs. A common mistake when using BeautifulSoup is attempting to access an element's `id` attribute using `tag.id`, which returns `None`. Your task is to write a Python script that correctly extracts the `id` attributes from HTML elements.
Part of PrimeIntellect/Terminal-Lego-15k.