HF RL Explorer

Task: Extract Content from Script Tags Using BeautifulSoup

Task: Extract Content from Script Tags Using BeautifulSoup: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that parses an HTML file containing embedded JSON-LD script tags and extracts the value of the "transcript" field from the JSON data within a <script tag.

The task

Write a Python script that parses an HTML file containing embedded JSON-LD script tags and extracts the value of the `"transcript"` field from the JSON data within a `<script>` tag.

Part of PrimeIntellect/Terminal-Lego-15k.