Refactoring the html parsing. Need to go in it's own module later.
Improving the regexes in the url parsing.