You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
387 B
Python

import sys
import requests
import time
from requests.exceptions import *
for link in sys.stdin:
link = link.rstrip()
print(link, file=sys.stderr)
try:
request = requests.get(link)
print(link, request.status_code, 'ok')
except SSLError as e:
print(link, "0", e)
except ConnectionError as e:
print(link, "0", e)
time.sleep(0.1)