Added functions for extracting urls from the html, and for converting
them into a full path that can be accessed.