Remove UberEatsBot pyperclip
This commit is contained in:
@@ -63,7 +63,7 @@ class UberEatsBot(MultiBot, ABC):
|
|||||||
storage_state={'cookies': cookies},
|
storage_state={'cookies': cookies},
|
||||||
user_agent=flanautils.USER_AGENT
|
user_agent=flanautils.USER_AGENT
|
||||||
)
|
)
|
||||||
context.set_default_timeout(1000)
|
context.set_default_timeout(3000)
|
||||||
|
|
||||||
page = await context.new_page()
|
page = await context.new_page()
|
||||||
await page.goto('https://www.myunidays.com/ES/es-ES/partners/ubereats/access/online')
|
await page.goto('https://www.myunidays.com/ES/es-ES/partners/ubereats/access/online')
|
||||||
@@ -79,7 +79,7 @@ class UberEatsBot(MultiBot, ABC):
|
|||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
page = context.pages[1]
|
page = context.pages[1]
|
||||||
page.wait_for_load_state()
|
await page.wait_for_load_state()
|
||||||
|
|
||||||
code = await get_code()
|
code = await get_code()
|
||||||
if not (new_code_button := await page.query_selector("button[class='getNewCode button secondary']")):
|
if not (new_code_button := await page.query_selector("button[class='getNewCode button secondary']")):
|
||||||
|
|||||||
Reference in New Issue
Block a user