Created
August 2, 2021 11:33
-
-
Save bhcopeland/9e00def9799665ee7a7b0a5065493297 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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