Now uses python logging instead of print statements. Outputs found urls in the end.