implemented looping, only retrieve url (and not e.g. full html)