Answer the question
In order to leave comments, you need to log in
How to know if there is an internet connection in Python?
How do I know if there is an internet connection on a PC (Windows)
Using Python
Answer the question
In order to leave comments, you need to log in
import requests
if requests.get('http://ya.ru').ok:
print('Есть контакт!')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question