HF RL Explorer

XPath Query to Get Nth Instance of an Element

XPath Query to Get Nth Instance of an Element: a task in Terminal-Lego-15k (Harbor dataset). You need to write a script that uses XPath to extract the second input element with the id attribute of "search query" from an HTML/XML file.

The task

You need to write a script that uses XPath to extract the **second** `input` element with the `id` attribute of `"search_query"` from an HTML/XML file.

Part of PrimeIntellect/Terminal-Lego-15k.