Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Python script to win points in bing search rewards.

Inspired by Medium blog post: https://medium.com/@prateekrm/earn-500-daily-microsoft-rewards-points-automatically-with-a-simple-python-program-38fe648ff2a9

## How to use?
### How to use?

**IMPORTANT**: Requires Python 3.10 or newer. It supports firefox and edge webdrivers, but I advise to use edge webdriver, it gives better results and earns more rewards points.

Expand Down
9 changes: 5 additions & 4 deletions bing_rewards_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from selenium.webdriver.edge.service import Service as EdgeService
from selenium.webdriver.edge.options import Options as EdgeOptions

from constants import MSEDGEDRIVER, RANDOM_WORDS_URL, GECKODRIVER, BING_LOGIN_URL
from constants import BING_LOGIN_URL, GECKODRIVER, MSEDGEDRIVER, RANDOM_WORDS_URL
from get_webdriver import save_webdriver


Expand All @@ -23,11 +23,12 @@ def wait_for(sec=2):
def get_driver_firefox(mobile=False):
profile = webdriver.FirefoxProfile()
options = FirefoxOptions()
options.headless = True
options.headless = False
options.add_argument("--disable-notifications")
if mobile:
profile.set_preference("general.useragent.override",
"Mozilla/5.0 (Android 8.0.0; Mobile; rv:63.0) Gecko/63.0 Firefox/63.0")
"Mozilla/5.0 (Android 8.0.0; Mobile; rv:63.0) Gecko/63.0 Firefox/63.0")

try:
return webdriver.Firefox(firefox_profile=profile, options=options,
service=FirefoxService(f"{GECKODRIVER}/{listdir(GECKODRIVER)[0]}"))
Expand All @@ -42,7 +43,7 @@ def get_driver_edge(mobile=False, service=False):
options.add_argument("--disable-notifications")
options.add_argument('--disable-gpu')
if mobile:
mobile_emulation = {"deviceName": "Galaxy S5"}
mobile_emulation = {"deviceName": "iPhone X"}
options.add_experimental_option("mobileEmulation", mobile_emulation)
options.add_argument('--headless')
try:
Expand Down