This commit is contained in:
piair 2022-02-19 19:40:56 +01:00
commit aa7bfa500f
1 changed files with 2 additions and 2 deletions

4
V4.py
View File

@ -422,7 +422,7 @@ def login() :
def BingPcSearch(override = randint(35,40)): def BingPcSearch(override = randint(35,40)):
driver.get(f'https://www.bing.com/search?q={choice(Liste_de_mot)}') driver.get(f'https://www.bing.com/search?q=test')#{choice(Liste_de_mot)}')
CustomSleep(uniform(1,2)) CustomSleep(uniform(1,2))
RGPD() RGPD()
send_keys_wait( driver.find_element(By.ID, 'sb_form_q'),Keys.BACKSPACE+Keys.BACKSPACE+Keys.BACKSPACE+Keys.BACKSPACE+Keys.BACKSPACE+Keys.BACKSPACE) send_keys_wait( driver.find_element(By.ID, 'sb_form_q'),Keys.BACKSPACE+Keys.BACKSPACE+Keys.BACKSPACE+Keys.BACKSPACE+Keys.BACKSPACE+Keys.BACKSPACE)
@ -469,7 +469,7 @@ def BingMobileSearch(override = randint(22,25)):
def Mlogin(echec): def Mlogin(echec):
try : try :
MobileDriver.get(f'https://www.bing.com/search?q={choice([Liste_de_mot])}') MobileDriver.get(f'https://www.bing.com/search?q=test')#{choice([Liste_de_mot])}')
CustomSleep(uniform(3,5)) CustomSleep(uniform(3,5))
MobileDriver.find_element(By.ID, 'mHamburger').click() MobileDriver.find_element(By.ID, 'mHamburger').click()