Bug fix: `visit` was calling startswith on objects that were potentially not strings.. moved this logic into the get_url function instead.