HF RL Explorer

Task: Test for Attribute Presence in HTML Tags Using BeautifulSoup

Task: Test for Attribute Presence in HTML Tags Using BeautifulSoup: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that parses an HTML document using BeautifulSoup, finds all <script tags, and categorizes them based on the presence or absence of specific attributes ( src and…

The task

Write a Python script that parses an HTML document using BeautifulSoup, finds all `<script>` tags, and categorizes them based on the presence or absence of specific attributes (`src` and `type`).

Part of PrimeIntellect/Terminal-Lego-15k.