From 35e8ec5090234644cfab95b78b44697f1e64940d Mon Sep 17 00:00:00 2001 From: AlberLC Date: Fri, 31 Mar 2023 07:39:15 +0200 Subject: [PATCH] Remove UberEatsBot pyperclip --- flanabot/bots/ubereats_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flanabot/bots/ubereats_bot.py b/flanabot/bots/ubereats_bot.py index ed47816..fda93f3 100644 --- a/flanabot/bots/ubereats_bot.py +++ b/flanabot/bots/ubereats_bot.py @@ -63,7 +63,7 @@ class UberEatsBot(MultiBot, ABC): storage_state={'cookies': cookies}, user_agent=flanautils.USER_AGENT ) - context.set_default_timeout(1000) + context.set_default_timeout(3000) page = await context.new_page() await page.goto('https://www.myunidays.com/ES/es-ES/partners/ubereats/access/online') @@ -79,7 +79,7 @@ class UberEatsBot(MultiBot, ABC): else: continue page = context.pages[1] - page.wait_for_load_state() + await page.wait_for_load_state() code = await get_code() if not (new_code_button := await page.query_selector("button[class='getNewCode button secondary']")):