This looks as if it would be better to split the code into two extractors. You can easily pass from one into the other by returning a `url_result`.