HF RL Explorer

Task: Find Direct Children of HTML Nodes Using BeautifulSoup

Task: Find Direct Children of HTML Nodes Using BeautifulSoup: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that uses BeautifulSoup to find all <a tags that are direct children of a <li element with class="test" , excluding any <a tags that are nested deeper…

The task

You need to write a Python script that uses BeautifulSoup to find all `<a>` tags that are **direct children** of a `<li>` element with `class="test"`, excluding any `<a>` tags that are nested deeper within the element hierarchy.

Part of PrimeIntellect/Terminal-Lego-15k.