HF RL Explorer

Task: Extract Absolute URLs from HTML

Task: Extract Absolute URLs from HTML: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that extracts all href attributes from anchor ( <a ) tags in an HTML file and converts any relative URLs to absolute URLs.

The task

You need to write a Python script that extracts all `href` attributes from anchor (`<a>`) tags in an HTML file and converts any relative URLs to absolute URLs.

Part of PrimeIntellect/Terminal-Lego-15k.