Get URL with sed instead of using Python