diff --git a/V6.py b/V6.py index 6b870bb..f23987e 100755 --- a/V6.py +++ b/V6.py @@ -303,6 +303,11 @@ def promo(): break if i > 3 : log_error("plus de 3 promo cards, probablement une pa skipable", driver) + try : + driver.find_element(By.CSS_SELECTOR, 'a[class="mee-icon pull-left icon mee-icon-Cancel ng-scope"]').click() + except Exception as e: + log_error(f"can't click to close : {e}") + return() try : elm.click() except Exception as e: @@ -744,10 +749,10 @@ def daily_routine(custom = False): except Exception as e: log_error(e) - try: - bing_mobile_search() - except Exception as e: - log_error(e) + #try: + # bing_mobile_search() + #except Exception as e: + # log_error(e) try: log_points(g._mail) diff --git a/build.sh b/build.sh index d499417..4ce548f 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1 @@ -#!/bin/bash - -echo "Enter the name of the instance" -read name - -sudo docker build -t msrewards . && sudo docker run -p 1234:1234 -p 2345:2345 --shm-size=2gb --name $name msrewards +sudo docker build -t msrewards . && sudo docker run -p 1234:1234 -p 2345:2345 --shm-size=2gb --name MsRewards msrewards