Skip to content

Instantly share code, notes, and snippets.

@bhcopeland
Created August 2, 2021 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhcopeland/9e00def9799665ee7a7b0a5065493297 to your computer and use it in GitHub Desktop.
Save bhcopeland/9e00def9799665ee7a7b0a5065493297 to your computer and use it in GitHub Desktop.
import requests
def url_ok(url):
request = requests.get(url)
if request.status_code == 200:
return True
else:
return False
print(url_ok("https://lore.kernel.org/netdev/1")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment