You can add a print statement in your loop to verify it's making progress.
... r = requests.get(url, headers = headers) print(f"Got {r.status} code from {r.url} lookup")In your original code, you don't seem to be doing anything with the result of the get. How are you using it?