HF RL Explorer

Task: Get All Direct Children of a BeautifulSoup Tag

Task: Get All Direct Children of a BeautifulSoup Tag: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that uses BeautifulSoup to extract all direct children (non-recursively) from a specified HTML element.

The task

Write a Python script that uses BeautifulSoup to extract all direct children (non-recursively) from a specified HTML element.

Part of PrimeIntellect/Terminal-Lego-15k.