def all_resource_urls(query):
urls = []<EOL>next = True<EOL>while next:<EOL><INDENT>response = requests.get(query)<EOL>json_data = json.loads(response.content)<EOL>for resource in json_data['<STR_LIT>']:<EOL><INDENT>urls.append(resource['<STR_LIT:url>'])<EOL><DEDENT>if bool(json_data['<STR_LIT>']):<EOL><INDENT>query = json_data['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>next = False<EOL><DEDENT><DEDENT>return urls<EOL>
Get all the URLs for every resource