Get urls and elements at the same time