[<pyttsx3.voice.Voice object at 0x000001FAB1B114F0>, <pyttsx3.voice.Voice object at 0x000001FAB1920AC0>]
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech_OneCore\Voices\Tokens
n = input("Input login: ")
for i in range(int(len(x))):
if x[i] == n:
print("login is busy")
log = input("input new login: ")
pas = input("input new password: ")
pas2 = input("repeat new passwort again: ")
if pas == pas2:
print("registrated new user")
l = open("database.txt", "a")
l.write(f"login : {log}, password : {pas},\n")
l.close()
else:
pas = input("input new password: ")
pas2 = input("repeat new passwort again: ")
if pas == pas2:
print("registrated new user")
l = open("database.txt", "a")
l.write(f"login : {log}, password : {pas},\n")
l.close()
break
document.readyState
loading
complete
navigator.webdriver;
. Вы увидите, что, во-первых, такая переменная там присутствует, а во-вторых, она равна true;
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_argument("--disable-infobars")
from urllib.request import urlopen
import re
from bs4 import BeautifulSoup
Url = 'your_url'
pg = urlopen(Url)
sp = BeautifulSoup(pg)
script_tag = sp.find_all('script')
print(re.search("setVideoHLS\(\'(.*?)\'\)", str(script_tag[индекс элемента(script), где расположена искомая ссылка])).group(1))
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
firefox_capabilities = DesiredCapabilities.FIREFOX
firefox_capabilities['marionette'] = True
browser = webdriver.Firefox(capabilities = firefox_capabilities)
browser.get('https://google.com')
browser.quit()
display.stop()
binary = FirefoxBinary('/firefox')
heroku run python myScheduledTask.py
chrm = Application().connect(title='Chrome browser')