Update from Ms

This commit is contained in:
piair 2022-02-08 09:45:53 +01:00
parent b6bf80c417
commit 681ed0bdb2
1 changed files with 17 additions and 10 deletions

9
V4.py
View File

@ -440,7 +440,7 @@ def login() :
def BingPcSearch(override = randint(35,40)):
driver.get(f'https://www.bing.com/search?q={choice([x for x in range (999999)])}&form=QBLH&sp=-1&pq=test&sc=8-4&qs=n&sk=&cvid=1DB80744B71E40B8896F5C1AD2DE95E9')
driver.get(f'https://www.bing.com/search?q={choice([x for x in range (999999)])}')
CustomSleep(uniform(1,2))
RGPD()
CustomSleep(uniform(1,1.5))
@ -642,6 +642,13 @@ def LogPoint(account="unknown"): #log des points sur discord
else :
asyncio.set_event_loop(asyncio.new_event_loop())
regex1 = "<a href=\"https://rewards\.bing\.com/\" title=\"((.{1,3}),(.{1,3})) points\" target=\"_blank\""
try :
points = search(regex1, driver.page_source)[1]
except Exception as e :
print(e)
elem = driver.find_element(By.CSS_SELECTOR, '[title="Microsoft Rewards"]')
elem.click()
CustomSleep(5)