safe_get_content function

Safely download and parse web content