mirror of
https://github.com/User0332/rewards-farmer.git
synced 2026-09-16 01:31:36 +00:00
Pacing Bing searches to 5.5-7.5s delay to prevent MS Rewards rate-limiting throttling
This commit is contained in:
@@ -6,3 +6,4 @@ USER_DATA_DIR = abspath("./data-dir")
|
|||||||
PROFILE_NAME = "Default"
|
PROFILE_NAME = "Default"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -386,7 +386,7 @@ class RewardsTaskUtils:
|
|||||||
):
|
):
|
||||||
self.keyboard.send_keys(f"{query} -noai{Keys.ENTER}")
|
self.keyboard.send_keys(f"{query} -noai{Keys.ENTER}")
|
||||||
|
|
||||||
time.sleep(random.uniform(0.5, 1))
|
time.sleep(random.uniform(5.5, 7.5))
|
||||||
|
|
||||||
try: self.wait_for_then_click(self.elements.get_clear_bing_search_query_button)
|
try: self.wait_for_then_click(self.elements.get_clear_bing_search_query_button)
|
||||||
except StaleElementReferenceException:
|
except StaleElementReferenceException:
|
||||||
|
|||||||
Reference in New Issue
Block a user