error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
selectors = ['.event__match.event__match--scheduled.event__match--oneLine.event__match.event__match--live.event__match--last.event__match--oneLine', '.event__match.event__match--last.event__match--oneLine', '.event__match.event__match--last.event__match--oneLine', '.event__match.event__match--live.event__match--last.event__match--oneLine']
for selector in selectors:
arr = driver.find_elements_by_css_selector(selector)
for channel in arr:
try:
channel.click()
count += 1
if count == 16:
driver.execute_script("window.scrollTo(0, 600);")
time.sleep(3)
elif count == 28:
driver.execute_script("window.scrollTo(600, 1100);")
time.sleep(3)
def solR(status):
listip = ['192.168.11.12', '192.168.11.13', '192.168.11.14', '192.168.11.15']
liststatus = []
for x, ip in enumerate(listip, 1):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
result = sock.connect_ex((ip,3389))
if result == 0:
liststatus.append(f'Удаленка №{x} - ОК')
else:
liststatus.append(f'Удаленка №{x} - Ошибка')
sock.close()
return '\n'.join(liststatus)
Удаленка №1 - Ошибка
Удаленка №2 - Ошибка
Удаленка №3 - ОК
Удаленка №4 - Ошибка