Git Product home page Git Product logo

bingrewards's Introduction

prem-ium

Github Sponsor

Hi there , I'm Prem-ium (Prem Patel)

🧠 Premium Software Engineer

πŸš€ About Me

  • πŸŽ“ I graduated with a Bachelor of Science in Computer Science w/ Magna Cum Laude honors.
  • 🌱 I’m currently interested in learning about Data Analysis & Visualization.
  • ⚑ Fun fact I love eating spicy food 🌢️ & talking about spaceπŸŒŒπŸ§‘β€πŸš€.

🀝 Open to Opportunities - πŸ“« Let's get in touch

πŸ“’ Available for Python Project Commissions!

Need custom Python solutions? I craft bespoke scripts and projects tailored to your needs, from automation to data processing & more. Reach out via email for inquiries or estimates on commissions.

πŸ“§ Email Me @ premiumcspatel[at] gmail.com

Gmail

Please contact me via email only if interested in a commission; redirect any project issues/bugs to the respective repository issues page.

🎯 Connect with me on LinkedIn

πŸ“ˆ My Github Stats:

prem-iumprem-ium

πŸ”§ Languages & Tools I Primarily Use

TypeScript JavaScript HTML5 Bootstrap CSS3 NodeJS Python Java Express.js Markdown Flask OpenCV Docker Selenium Keras NumPy Pandas Firebase Netlify Google Cloud GitHub Actions AWS Replit PyCharm Visual Studio Code Eclipse IntelliJ IDEA Git GitHub

πŸ“ŒMore Stats

🎯 Metrics

Metrics

πŸ’« Repo Star Data

Stargazers

πŸ“ Habits

habits

πŸ“‚ Featured Repos

repos

bingrewards's People

Contributors

lab596 avatar meghrathod avatar nelsondane avatar prem-ium avatar siriusarc7 avatar uplusion23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bingrewards's Issues

Can't create base directory

[8788:14004:0914/073649.932:ERROR:util.cc(129)] Can't create base directory: C:\Program Files\Google\GoogleUpdater
Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="daily-sets"]/mee-card-group[1]/div/mee-card[1]/div/card-content/mee-rewards-daily-set-item-content/div/a/mee-rewards-points/div/div/span[1]"}
(Session info: chrome=105.0.5195.127)
Stacktrace:
Backtrace:
Ordinal0 [0x0090DF13+2219795]
Ordinal0 [0x008A2841+1779777]
Ordinal0 [0x007B423D+803389]
Ordinal0 [0x007E3025+995365]
Ordinal0 [0x007E31EB+995819]
Ordinal0 [0x00810F52+1183570]
Ordinal0 [0x007FE844+1108036]
Ordinal0 [0x0080F192+1175954]
Ordinal0 [0x007FE616+1107478]
Ordinal0 [0x007D7F89+950153]
Ordinal0 [0x007D8F56+954198]
GetHandleVerifier [0x00C02CB2+3040210]
GetHandleVerifier [0x00BF2BB4+2974420]
GetHandleVerifier [0x009A6A0A+565546]
GetHandleVerifier [0x009A5680+560544]
Ordinal0 [0x008A9A5C+1808988]
Ordinal0 [0x008AE3A8+1827752]
Ordinal0 [0x008AE495+1827989]
Ordinal0 [0x008B80A4+1867940]
BaseThreadInitThunk [0x76B2FA29+25]
RtlGetAppContainerNamedObjectPath [0x77527B5E+286]
RtlGetAppContainerNamedObjectPath [0x77527B2E+238]

Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="daily-sets"]/mee-card-group[1]/div/mee-card[3]/div/card-content/mee-rewards-daily-set-item-content/div/a/mee-rewards-points/div/div/span[1]"}
(Session info: chrome=105.0.5195.127)
Stacktrace:
Backtrace:
Ordinal0 [0x0090DF13+2219795]
Ordinal0 [0x008A2841+1779777]
Ordinal0 [0x007B423D+803389]
Ordinal0 [0x007E3025+995365]
Ordinal0 [0x007E31EB+995819]
Ordinal0 [0x00810F52+1183570]
Ordinal0 [0x007FE844+1108036]
Ordinal0 [0x0080F192+1175954]
Ordinal0 [0x007FE616+1107478]
Ordinal0 [0x007D7F89+950153]
Ordinal0 [0x007D8F56+954198]
GetHandleVerifier [0x00C02CB2+3040210]
GetHandleVerifier [0x00BF2BB4+2974420]
GetHandleVerifier [0x009A6A0A+565546]
GetHandleVerifier [0x009A5680+560544]
Ordinal0 [0x008A9A5C+1808988]
Ordinal0 [0x008AE3A8+1827752]
Ordinal0 [0x008AE495+1827989]
Ordinal0 [0x008B80A4+1867940]
BaseThreadInitThunk [0x76B2FA29+25]
RtlGetAppContainerNamedObjectPath [0x77527B5E+286]
RtlGetAppContainerNamedObjectPath [0x77527B2E+238]

Implement password-less account handling?

This looks promising!

Just a quick suggestion, what would the possibility be of adding support for password-less accounts? I may look into this myself if I have time, but this could be a really useful feature for people that do not use passwords on their Microsoft account anymore.

Warpspeed quiz not working

I believe there are two different versions of this quiz. One that indicates 4 correct answers out of a selection of 8 (it is able to complete this version just fine) however a second version presents 4 options with a single correct answer. It seems to hang on this version simply clicking "start playing" but unable to click any of the answer choices. Is anyone else getting a similar problem? No error is indicated simply sits there for a designated time and restarts after 500 seconds.

Error report returned when SOCKS5 proxy

I always return this error report when I use SOCKS5 proxy, I don't know why, it doesn't appear when I don't use SOCKS5 proxy.

Ran into an exception trying to redeem
Traceback (most recent call last):
  File "/app/main.py", line 844, in redeem
    points = int(position0.replace(",", ""))
ValueError: invalid literal for int() with base 10: 'Startearningtowardsaredemptiongoal'

The final mobile search does not count somehow

Does anyone here have a problem that the last mobile search does not count somehow and remains unfinished?

I live in Japan where POINTS_PER_SEARCH is 3 so it may not be the case for most of the contributors here, but every time the python script runs, it always finishes the mobile search with 57/60. After several hours the next attempt happens as usual and it detects that 1 mobile search has to be done... but it ends up 57/60 somehow even though the script does 1 mobile search. It's just NOT counting.
The weird thing is that PC search always works successfully(90/90) so I assume there's something different needed on mobile specifically but I need to know if this is only happening to me. If someone else is having this issue, I will try to fix this and make a PR. Thanks

Understanding ENV file

Hi,

I'm trying to get mine version of the script working but I couldn't figure out what would I need to put in the URL in the env file.

IPv4 problem

i have not set any value for ipv4 or ipv6, and i dont want to.
but when i try to run the program it says
Unable to get IPv4 address
Failed to connect to icanhazip.com over v4. Is there a problem with your network?

unknown error: DevToolsActivePort file doesn't exist

With .env:

URL=https://login.live.com/login.srf?{QUERY}
HEADLESS=True
MULTITHREADING=True
AUTO_REDEEM=False
TZ=America/Los_Angeles
TIMER=False
BROWSER=chrome

Running the Docker image nelsondane/bing-rewards (Digest: ec38f40ef64d661bfc5d85cc88799928404acc94821512c4e22ebe07a0931ecb) with:

docker run -it --rm --env-file ./.env --name bing-rewards nelsondane/bing-rewards

Outputs:

rm: cannot remove '/tmp/.X99-lock': No such file or directory
Starting X virtual framebuffer (Xvfb) in background...
BROWSER: chrome
HANDLE_DRIVER: False
Starting Bing Rewards Bot...
Multithreading is enabled in .env.
This will allow you to run multiple accounts at once, but it may also increase the chance of being banned and leads to more CPU usage.
Use at your own risk.
Current IPv4 Address: X.X.X.X
Unable to get IPv6 address


Starting Bing Rewards Automation:	2022-12-20 22:35:09.563978-08:00

Exception in thread Thread-1 (run_rewards):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/app/main.py", line 1182, in run_rewards
    driver = get_driver()
  File "/app/main.py", line 260, in get_driver
    driver = webdriver.Chrome(options=options)
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
    super().__init__(
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/chromium/webdriver.py", line 106, in __init__
    super().__init__(
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 288, in __init__
    self.start_session(capabilities, browser_profile)
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 381, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 444, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/errorhandler.py", line 249, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed.
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x00400066a2a3 <unknown>
#1 0x004000428f77 <unknown>
#2 0x0040004515f7 <unknown>
#3 0x00400044d7d0 <unknown>
#4 0x00400048e0b7 <unknown>
#5 0x00400048da5f <unknown>
#6 0x004000485903 <unknown>
#7 0x004000458ece <unknown>
#8 0x004000459fde <unknown>
#9 0x0040006ba63e <unknown>
#10 0x0040006bdb79 <unknown>
#11 0x0040006a089e <unknown>
#12 0x0040006bea83 <unknown>
#13 0x004000693505 <unknown>
#14 0x0040006dfca8 <unknown>
#15 0x0040006dfe36 <unknown>
#16 0x0040006fb333 <unknown>
#17 0x004002ad6b43 <unknown>

Bing Rewards Automation Complete!
2022-12-20 22:35:15.401242-08:00
Sleeping for 5 hours before rechecking...

Found this SO issue, but I see that the arg is used, so I'm unsure how to fix.

Suggestion: Option to enable/disable quizzes

I noticed that my this/that for today was 35/50 score. I'm not sure if this bot has a database of answers it references or just picks randomly.

It would be nice to have a per account option in configuration to disable auto completion of quizzes whose score is based on correct answers. Would be useful for my main account where daily completion is not a concern and I mainly want to use this bot to ensure daily search completion.

Bot not completing all tasks?

So, I have this bot running 24/7 on my rasberry pi, and everything has went perfect until just a few days ago it stopped completing all quizes. It seems random but sometimes it will skip tasks that are worth a good amount of points. Anyone know why?

Feature requests

When running multiple accounts is it possible to have the accounts space out the timing of logging in instead of them all logging in at once? Is it also possible to space out the timing of the searches? It seems as if it is searching too fast.

Some great feature requests.

I have a few feature ideas that have existed in bots previously, they are as follows:
1.) Multi-threading and parallel processing to run multiple accounts simultaneously.
2.) Auto account creation by getting random names and details from a site like https://namefake.com/ where only captcha needs to be solved manually or it can be solved automatically with the help of services like:
1.) http://www.imagetyperz.com/
2.) https://deathbycaptcha.com/
3.) https://2captcha.com/
and saving these details into a text file for later use.
3.) Auto-redeem rewards with URL or name for different countries along with phone verification using a service with available API such as:
1.) https://frenziedsms.com/
2.) https://otpzone.com/
3.) https://www.textverified.com/
If you could implement this, it would make the bot completely automated which would save a lot of time.

How does auto redeem work?

Hey!

Looks like a nice bot. Thanks for your work.

Im wondering how this auto redeem feature work? I need to type in a phone number and type in a code everytime i want to redeem a voucher.

How does this bot handle this kind? How does the script know if i want dollar, Euros or other?

Thanks

Muffin

Unable to locate element

Errors:

  1. Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="idSIButton9"]"}
    (Session info: chrome=108.0.5359.124)

  2. Traceback (most recent call last):
    File "/BingRewards/main.py", line 1145, in update_searches
    PC = driver.find_element(By.XPATH, value='//[@id="userPointsBreakdown"]/div/div[2]/div/div[1]/div/div[2]/mee-rewards-user-points-details/div/div/div/div/p[2]').text.replace(" ", "").split("/")
    File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 861, in find_element
    return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
    File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 444, in execute
    self.error_handler.check_response(response)
    File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/errorhandler.py", line 249, in check_response
    raise exception_class(message, screen, stacktrace)
    selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//
    [@id="userPointsBreakdown"]/div/div[2]/div/div[1]/div/div[2]/mee-rewards-user-points-details/div/div/div/div/p[2]"}
    (Session info: chrome=108.0.5359.124)

  3. Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="daily-sets"]/mee-card-group[1]/div/mee-card[1]/div/card-content/mee-rewards-daily-set-item-content/div/a/mee-rewards-points/div/div/span[1]"}
    (Session info: chrome=108.0.5359.124)

These type of error occurs frequently, and some quizzes or Daily Sets can not be completed.

pytz.exceptions.UnknownTimeZoneError

Hello! Thanks for your working! Sorry to bother you about the docker version problem.
Environment: Win10 Docker Desktop
Problem: Rasie the TimeZoneError , Changed the .env but it still doesn't work
Log:
First TIME:

rm: cannot remove '/tmp/.X99-lock': No such file or directory
Starting X virtual framebuffer (Xvfb) in background...
BROWSER: 'chrome'
HANDLE_DRIVER: True
Starting Bing Rewards Bot...
Traceback (most recent call last):
File "/app/main.py", line 135, in
TZ = timezone(os.environ.get("TZ", "America/New_York"))
File "/usr/local/lib/python3.10/dist-packages/pytz/init.py", line 188, in timezone
raise UnknownTimeZoneError(zone)
pytz.exceptions.UnknownTimeZoneError: "'America/New_York'"

I changed the .env trying to keep it same as my windows os.
Still Raise:

rm: cannot remove '/tmp/.X99-lock': No such file or directory
Starting X virtual framebuffer (Xvfb) in background...
BROWSER: 'chrome'
HANDLE_DRIVER: True
Starting Bing Rewards Bot...
Traceback (most recent call last):
File "/app/main.py", line 135, in
TZ = timezone(os.environ.get("TZ", "America/New_York"))
File "/usr/local/lib/python3.10/dist-packages/pytz/init.py", line 188, in timezone
raise UnknownTimeZoneError(zone)
pytz.exceptions.UnknownTimeZoneError: "'Asia/Shanghai'"

Could you help me and thank you very much!

How to run with Github Workflow

Hey,

can i run this script fully automate with github workflow? So the only thing i need is to do is to collect all giftcards?

Thanks

Muffin

frozen OS error.

I'm not sure if this is as I'm UK based and it won't work for me, however this will not run. following setting up env file, and turning headless back off, it seems it's not even getting to opening a chrome window. Any ideas on what may be causing the below?

Traceback (most recent call last): File "C:\Users\My Laptop\Desktop\BingRewards-main\main.py", line 29, in <module> if not os.environ["LOGIN"]: ~~~~~~~~~~^^^^^^^^^ File "<frozen os>", line 679, in __getitem__ KeyError: 'LOGIN``

Can the Docker version support linux/arm64/v8

Can the Docker version support Linux/arm64/v8 platform。
ERROR:
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /app/entrypoint.sh: exec format error

Error building the image

While building the image I get:

Reading package lists... W: http://dl.google.com/linux/chrome/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package google-chrome-stable The command '/bin/sh -c apt-get update && apt-get -y install google-chrome-stable && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

User agent

You are using a pretty old Chrome user agent. Is there a way to change that to the most current user agent? Mobile also?

login not working

Required .env variables:

Comma delimited, remove quotes if using a single account

'LOGIN'= [email protected]:my password is entered here

If you open up the Bing homepage in incognito mode and click the "Sign In" button.

Should take you to the login page, where you can copy the URL and assign it to the URL env variable.

URL="https://login.live.com/login.srf?{QUERY}"

Optional .env variables:

Set WebDriver Download Manager status to on

Default: True

Values: True | False

HANDLE_DRIVER=True

** Experimental **

Set the browser the bot will use.

Not used in Docker

HANDLE_DRIVER must be True

Default: 'chrome'

Values: 'chrome' | 'edge' | 'firefox'

BROWSER='chrome'

Whether the program will run in headless mode [no ui]

Default: False

Values: True | False

HEADLESS=False

Whether the program will run multiple threads to run all accounts or not

Default: False

Values: True | False

MULTITHREADING=False

How long to wait before performing searches

Values: Any valid integer

DELAY_SEARCH=10

Configure Apprise URL Alerts

Full list of available URLs

https://github.com/caronc/apprise/wiki

Default:

Values: Any Apprise URL

APPRISE_ALERTS=

Auto-Redeem rewards

Default: False

Values: True | False

AUTO_REDEEM=False

Set the goal automatically

Default: 'amazon.com'

Values: 'amazon.com' | 'hulu' | 'walmart'

GOAL='amazon.com'

Whether the bot should automate punchcards

Default: False

Values: True | False

AUTOMATE_PUNCHCARD=True

** Experimental **

Attemptes to create a new shoping feature

No contributing developer has access to this method

of points to verify/debug functionality

Default: False

Values: True | False

SHOPPING=False

Sets the currency symbol or name

Plan to add more as more users provide information on their local conversion rates.

Default: USD

Values: $ | USD | € | EURO

CURRENCY=USD

Name of the instance of the bot

Default: 'Bing Rewards Automation'

Values: Any String, single-quoted if name contains spaces or special characters

BOT_NAME='Bing Rewards Automation'

Sets the timezone for the bot

Default: 'America/New_York'

Values: Any valid IANA timezone (https://www.iana.org/time-zones)

TZ='America/New_York'

Enables / Disables the timer functionality

Default: False

Values: True | False

TIMER=False

What time the bot will function

Use 1-24 to set time, such as 4 being 4:00AM, 13 being 1:00PM

Default:

START_TIME: 4

END_TIME: 19

Values: 1-24

START_TIME=4
END_TIME=19

Whether you want to use a flask server to prevent the program

from dying

Default: False

Values: True | False

KEEP_ALIVE=False

Your desired external IPv4 Address

Optional

If you do not want to check your external IPv4 address

is the same as your desired IPv4 address

Default:

Values: Any valid IPv4 Address

WANTED_IPV4=

Your desired external IPv6 Address

Optional

If you do not want to check your external IPv6 address

is the same as your desired IPv6 address

Default:

Values: Any valid IPv6 Address

WANTED_IPV6=

Configure a HTTP(S) or SOCKS5 proxy through which all of the bot's traffic will go

Default:

Values: Any valid URI format proxy (e.g., https://1.2.3.4:5678)

PROXY=https://10.10.10.10:8000

here is what I put in,
here is what i get

C:\Users\south>python main.py
Traceback (most recent call last):
File "C:\Users\south\main.py", line 29, in
if not os.environ["LOGIN"]:
~~~~~~~~~~^^^^^^^^^
File "", line 679, in getitem
KeyError: 'LOGIN'

C:\Users\south>

main.py might has a typo?

im new to python and when i run python ./main.py
it told me

Traceback (most recent call last):
  File "W:\BingRewards\main.py", line 94, in <module>
    if (os.envion.get("SHOPPING", "false").lower() == "true"):
        ^^^^^^^^^
AttributeError: module 'os' has no attribute 'envion'. Did you mean: 'environ'?

so i tried to change it to environ, and the program run normaly
so is that a typo or it is how it should be?

the super speed quiz don't work

hi, the bot is doing all well but for every of my accounts the superspeed quiz is not complete.
in more (i use edge) the bot block himself because the browser require every time for cookies acconsention

Full Screen ?

It have to be full screen? is there a way to use in headless silent mode? or in smaller size of browser?

alsow how to change it for other country

Last option in Quizzes

In the quizzes(turbocharge quiz, etc), if the last option is the correct option, the code never gets to the last option. Say a question has 4 options, then it iterates over the first 3 only. In this case, if the 4th option is the correct option, the code never reaches it and just freezes.

no definied modul with flask

hi
i have installed the request and python 3.7.9 i need 3.7.9 for something elese. normally all works well
but when i start the bot i get message

Traceback (most recent call last):
File "C:\Users\Bre\folder1\BingRewards\main.py", line 85, in
from keep_alive import keep_alive
File "C:\Users\Bre\folder1\BingRewards\keep_alive.py", line 1, in
from flask import Flask
ModuleNotFoundError: No module named 'flask'

my .env looks like:

Required .env variables:

LOGIN="[email protected]:sdgterh9efh84zjgfd,[email protected]:hein38dgnsq#"

If you open up the Bing homepage in incognito mode and click the "Sign In" button.

Should take you to the login page, where you can copy the URL and assign it to the URL env variable.

URL="https://login.live.com/oauth20_a"

Optional .env variables:

HANDLE_DRIVER= True
BROWSER= chrome
HEADLESS= False

MULTITHREADING= False

DELAY_SEARCH= 2

AUTOMATE_PUNCHCARD= True

SHOPPING = True

CURRENCY= €

BOT_NAME = 'bing rewards 3'

TZ= CEST
TIMER= False
START_TIME= 4
END_TIME= 19

KEEP_ALIVE = True

Configure a HTTP(S) or SOCKS5 proxy through which all of the bot's traffic will go

Should be in a URI format (e.g., https://1.2.3.4:5678)

#PROXY=

Will not complete all searches.

Having an issue where the script can never complete an entire days worth of searches. It's usually mobile, but happens with web searches as well. Even if it's run 4 times a day, it never completes them. Running 2 account, not in multi-threading.

How to use BingRewards with 2FA?

I recently enabled 2FA on my account and clearly the bot can no longer perform its automations.
Is there any way I can use it with 2FA enabled?

notwoking in crontab

Hi, I using ubuntu 22.04 run it in normal terminal. But when I using crontab for autorun, It's not working. its said about package chromium
output.txt
this is output log.

Architecture Error running on Raspberry Pi 4

Error:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
standard_init_linux.go:228: exec user process caused: exec format error

Command:

docker run -it --env-file ./BingRewards.env --restart unless-stopped --name bing-rewards nelsondane/bing-rewards:latest

[Help] practical tutorial

good morning! Please help me!!!

I don't know how to install. could you give me a practical tutorial????

Thanks in advance!!!

KeyError: 'LOGIN'

Running docker container on Ubunutu, I get the following error:

Starting X virtual framebuffer (Xvfb) in background...
οΏ½
 
HANDLE_DRIVER: 
Starting Bing Rewards Bot...
Traceback (most recent call last):
  File "/app/main.py", line 30, in <module>
    if not os.environ["LOGIN"]:
  File "/usr/lib/python3.10/os.py", line 679, in __getitem__
    raise KeyError(key) from None
KeyError: 'LOGIN'

Not quite sure where to go from here?

Search not working in docker

I got the docker container to start on my headless VPS, but the search doesn't work
this is the error log I get

Traceback (most recent call last):
  File "/app/main.py", line 1169, in update_searches
    PC = driver.find_element(By.XPATH, value='//*[@id="userPointsBreakdown"]/div                                                                                                             /div[2]/div/div[1]/div/div[2]/mee-rewards-user-points-details/div/div/div/div/p[                                                                                                             2]').text.replace(" ", "").split("/")
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdri                                                                                                             ver.py", line 830, in find_element
    return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["va                                                                                                             lue"]
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdri                                                                                                             ver.py", line 440, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/errorh                                                                                                             andler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Una                                                                                                             ble to locate element: {"method":"xpath","selector":"//*[@id="userPointsBreakdow                                                                                                             n"]/div/div[2]/div/div[1]/div/div[2]/mee-rewards-user-points-details/div/div/div                                                                                                             /div/p[2]"}
  (Session info: chrome=109.0.5414.119)
Stacktrace:
#0 0x556a21895303 <unknown>
#1 0x556a21669d37 <unknown>
#2 0x556a216a65b2 <unknown>
#3 0x556a216a66c1 <unknown>
#4 0x556a216e0b34 <unknown>
#5 0x556a216c69ad <unknown>
#6 0x556a216de88c <unknown>
#7 0x556a216c6753 <unknown>
#8 0x556a21699a14 <unknown>
#9 0x556a2169ab7e <unknown>
#10 0x556a218e432e <unknown>
#11 0x556a218e7c0e <unknown>
#12 0x556a218ca610 <unknown>
#13 0x556a218e8c23 <unknown>
#14 0x556a218bc545 <unknown>
#15 0x556a219096a8 <unknown>
#16 0x556a21909836 <unknown>
#17 0x556a21924d13 <unknown>
#18 0x7f6bd20f6b43 <unknown>



Message: no such element: Unable to locate element: {"method":"xpath","selector"                                                                                                             :"//*[@id="daily-sets"]/mee-card-group[1]/div/mee-card[1]/div/card-content/mee-r                                                                                                             ewards-daily-set-item-content/div/a/mee-rewards-points/div/div/span[1]"}
  (Session info: chrome=109.0.5414.119)
Stacktrace:
#0 0x556a21895303 <unknown>
#1 0x556a21669d37 <unknown>
#2 0x556a216a65b2 <unknown>
#3 0x556a216a66c1 <unknown>
#4 0x556a216e0b34 <unknown>
#5 0x556a216c69ad <unknown>
#6 0x556a216de88c <unknown>
#7 0x556a216c6753 <unknown>
#8 0x556a21699a14 <unknown>
#9 0x556a2169ab7e <unknown>
#10 0x556a218e432e <unknown>
#11 0x556a218e7c0e <unknown>
#12 0x556a218ca610 <unknown>
#13 0x556a218e8c23 <unknown>
#14 0x556a218bc545 <unknown>
#15 0x556a219096a8 <unknown>
#16 0x556a21909836 <unknown>
#17 0x556a21924d13 <unknown>
#18 0x7f6bd20f6b43 <unknown>

Message: no such element: Unable to locate element: {"method":"xpath","selector"                                                                                                             :"//*[@id="daily-sets"]/mee-card-group[1]/div/mee-card[3]/div/card-content/mee-r                                                                                                             ewards-daily-set-item-content/div/a/mee-rewards-points/div/div/span[1]"}
  (Session info: chrome=109.0.5414.119)
Stacktrace:
#0 0x556a21895303 <unknown>
#1 0x556a21669d37 <unknown>
#2 0x556a216a65b2 <unknown>
#3 0x556a216a66c1 <unknown>
#4 0x556a216e0b34 <unknown>
#5 0x556a216c69ad <unknown>
#6 0x556a216de88c <unknown>
#7 0x556a216c6753 <unknown>
#8 0x556a21699a14 <unknown>
#9 0x556a2169ab7e <unknown>
#10 0x556a218e432e <unknown>
#11 0x556a218e7c0e <unknown>
#12 0x556a218ca610 <unknown>
#13 0x556a218e8c23 <unknown>
#14 0x556a218bc545 <unknown>
#15 0x556a219096a8 <unknown>
#16 0x556a21909836 <unknown>
#17 0x556a21924d13 <unknown>
#18 0x7f6bd20f6b43 <unknown>

Message: no such element: Unable to locate element: {"method":"xpath","selector"                                                                                                             :"//*[@id="daily-sets"]/mee-card-group[1]/div/mee-card[2]/div/card-content/mee-r                                                                                                             ewards-daily-set-item-content/div/a/mee-rewards-points/div/div/span[1]"}
  (Session info: chrome=109.0.5414.119)
Stacktrace:
#0 0x556a21895303 <unknown>
#1 0x556a21669d37 <unknown>
#2 0x556a216a65b2 <unknown>
#3 0x556a216a66c1 <unknown>
#4 0x556a216e0b34 <unknown>
#5 0x556a216c69ad <unknown>
#6 0x556a216de88c <unknown>
#7 0x556a216c6753 <unknown>
#8 0x556a21699a14 <unknown>
#9 0x556a2169ab7e <unknown>
#10 0x556a218e432e <unknown>
#11 0x556a218e7c0e <unknown>
#12 0x556a218ca610 <unknown>
#13 0x556a218e8c23 <unknown>
#14 0x556a218bc545 <unknown>
#15 0x556a219096a8 <unknown>
#16 0x556a21909836 <unknown>
#17 0x556a21924d13 <unknown>
#18 0x7f6bd20f6b43 <unknown>

Traceback (most recent call last):
  File "/app/main.py", line 1066, in pc_search_helper
    pc_search(driver, EMAIL, PASSWORD, PC_SEARCHES)
  File "/app/main.py", line 1006, in pc_search
    driver.get(os.environ['URL'])
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 449, in get
    self.execute(Command.GET, {"url": url})
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument
  (Session info: chrome=109.0.5414.119)
Stacktrace:
#0 0x556a21895303 <unknown>
#1 0x556a21669bbd <unknown>
#2 0x556a21654b89 <unknown>
#3 0x556a21652e5e <unknown>
#4 0x556a216532a4 <unknown>
#5 0x556a2166bc48 <unknown>
#6 0x556a216def15 <unknown>
#7 0x556a216c6982 <unknown>
#8 0x556a216de88c <unknown>
#9 0x556a216c6753 <unknown>
#10 0x556a21699a14 <unknown>
#11 0x556a2169ab7e <unknown>
#12 0x556a218e432e <unknown>
#13 0x556a218e7c0e <unknown>
#14 0x556a218ca610 <unknown>
#15 0x556a218e8c23 <unknown>
#16 0x556a218bc545 <unknown>
#17 0x556a219096a8 <unknown>
#18 0x556a21909836 <unknown>
#19 0x556a21924d13 <unknown>
#20 0x7f6bd20f6b43 <unknown>


Attempting to restart PC search in 500 seconds

Proxy per account support

Could you maybe add a way to use custom proxy per account?
Instead of just one single proxy for all accounts

Small typo in readme

Change:
END_TIME = 24 hour format hour you would like to start the program, if timer is enabled. Defaults to 19, 7 PM

to:
END_TIME = 24 hour format hour you would like to end the program, if timer is enabled. Defaults to 19, 7 PM

Add more points earning options

These are a few points options that can earn around 100 points daily per account, please add the functionalities to complete these tasks.
1.) Implementation of feature to automatically complete daily videos as well as the daily available web browser pages, this will result in additional 100-150 points per account, more information regarding this will be found in the below mentioned Reddit threads.

https://reddit.com/r/MicrosoftRewards/comments/vscyfu/us_found_new_daily_points/

https://reddit.com/r/MicrosoftRewards/comments/wn1and/msn_fitness_hyper_optimization_i_aint_got_time_to/

Unable to start Docker Container

Using the prebuilt image from Docker Hub, starting the container with the latest tag for the image resulted in this error:

Exception: local variable 'options' referenced before assignment

Traceback (most recent call last):
  File "/app/main.py", line 1395, in main
    start_rewards()
  File "/app/main.py", line 1275, in start_rewards
    driver = get_driver()
  File "/app/main.py", line 258, in get_driver
    options.add_argument('--no-sandbox')
UnboundLocalError: local variable 'options' referenced before assignment



 Attempting to restart Bing Rewards Automation in 10 minutes...

I let it sit for 30 minutes and it didn't work.
I also tried building the image myself from this repo but no dice.

Server info:

  • OS: Ubuntu Server 22.04.02
  • CPU arch: X86

Trouble getting back to searches after URL's and quizzes.

Love the bot. Playing around with it now. After finishing URL's and quizzes I got this:

Attempting to restart Mobile search in 500 seconds
[19836:18892:0116/220111.637:ERROR:device_event_log_impl.cc(215)] [22:01:11.639] USB: usb_device_handle_win.cc:1045 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[19836:20940:0116/220209.550:ERROR:util.cc(133)] Can't create base directory: C:\Program Files\Google\GoogleUpdater
[19108:19392:0116/220309.610:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is disabled, ANGLE is

DevTools listening on ws://127.0.0.1:50999/devtools/browser/5f549edf-54c6-4b87-ad5c-454d211d0f99
[15628:18064:0116/220941.194:ERROR:device_event_log_impl.cc(215)] [22:09:41.194] USB: usb_device_handle_win.cc:1045 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
Traceback (most recent call last):
File "C:\Users\INSPIRON 3670\Desktop\BingRewards-main\main.py", line 1114, in mobile_helper
mobile_search(driver, EMAIL, PASSWORD, MOBILE_SEARCHES)
File "C:\Users\INSPIRON 3670\Desktop\BingRewards-main\main.py", line 1070, in mobile_search
driver.get(os.environ['URL'])
File "C:\Users\INSPIRON 3670\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 455, in get
self.execute(Command.GET, {"url": url})
File "C:\Users\INSPIRON 3670\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 444, in execute
self.error_handler.check_response(response)
File "C:\Users\INSPIRON 3670\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 249, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument
(Session info: chrome=108.0.5359.126)
Stacktrace:
Backtrace:
(No symbol) [0x0048F243]
(No symbol) [0x00417FD1]
(No symbol) [0x0030CF10]
(No symbol) [0x003000EE]
(No symbol) [0x002FEA07]
(No symbol) [0x002FEDC2]
(No symbol) [0x0030EA5B]
(No symbol) [0x0036D187]
(No symbol) [0x0035858C]
(No symbol) [0x0036C9EB]
(No symbol) [0x00358386]
(No symbol) [0x0033163C]
(No symbol) [0x0033269D]
GetHandleVerifier [0x00729A22+2655074]
GetHandleVerifier [0x0071CA24+2601828]
GetHandleVerifier [0x00538C0A+619850]
GetHandleVerifier [0x00537830+614768]
(No symbol) [0x004205FC]
(No symbol) [0x00425968]
(No symbol) [0x00425A55]
(No symbol) [0x0043051B]
BaseThreadInitThunk [0x768B00F9+25]
RtlGetAppContainerNamedObjectPath [0x77DF7BBE+286]
RtlGetAppContainerNamedObjectPath [0x77DF7B8E+238]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\INSPIRON 3670\Desktop\BingRewards-main\main.py", line 1145, in update_searches
PC = driver.find_element(By.XPATH, value='//[@id="userPointsBreakdown"]/div/div[2]/div/div[1]/div/div[2]/mee-rewards-user-points-details/div/div/div/div/p[2]').text.replace(" ", "").split("/")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\INSPIRON 3670\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 861, in find_element
return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\INSPIRON 3670\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 444, in execute
self.error_handler.check_response(response)
File "C:\Users\INSPIRON 3670\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 249, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//
[@id="userPointsBreakdown"]/div/div[2]/div/div[1]/div/div[2]/mee-rewards-user-points-details/div/div/div/div/p[2]"}
(Session info: chrome=108.0.5359.126)
Stacktrace:
Backtrace:
(No symbol) [0x0048F243]
(No symbol) [0x00417FD1]
(No symbol) [0x0030D04D]
(No symbol) [0x0033C0B0]
(No symbol) [0x0033C22B]
(No symbol) [0x0036E612]
(No symbol) [0x003585D4]
(No symbol) [0x0036C9EB]
(No symbol) [0x00358386]
(No symbol) [0x0033163C]
(No symbol) [0x0033269D]
GetHandleVerifier [0x00729A22+2655074]
GetHandleVerifier [0x0071CA24+2601828]
GetHandleVerifier [0x00538C0A+619850]
GetHandleVerifier [0x00537830+614768]
(No symbol) [0x004205FC]
(No symbol) [0x00425968]
(No symbol) [0x00425A55]
(No symbol) [0x0043051B]
BaseThreadInitThunk [0x768B00F9+25]
RtlGetAppContainerNamedObjectPath [0x77DF7BBE+286]
RtlGetAppContainerNamedObjectPath [0x77DF7B8E+238]

Exception: get_driver() got an unexpected keyword argument 'mobile'

Traceback (most recent call last):
File "C:\Users\INSPIRON 3670\Desktop\BingRewards-main\main.py", line 1114, in mobile_helper
mobile_search(driver, EMAIL, PASSWORD, MOBILE_SEARCHES)
File "C:\Users\INSPIRON 3670\Desktop\BingRewards-main\main.py", line 1070, in mobile_search
driver.get(os.environ['URL'])
File "C:\Users\INSPIRON 3670\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 455, in get
self.execute(Command.GET, {"url": url})
File "C:\Users\INSPIRON 3670\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 444, in execute
self.error_handler.check_response(response)
File "C:\Users\INSPIRON 3670\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 249, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument
(Session info: chrome=108.0.5359.126)
Stacktrace:
Backtrace:
(No symbol) [0x0048F243]
(No symbol) [0x00417FD1]
(No symbol) [0x0030CF10]
(No symbol) [0x003000EE]
(No symbol) [0x002FEA07]
(No symbol) [0x002FEDC2]
(No symbol) [0x0030EA5B]
(No symbol) [0x0036D187]
(No symbol) [0x0035858C]
(No symbol) [0x0036C9EB]
(No symbol) [0x00358386]
(No symbol) [0x0033163C]
(No symbol) [0x0033269D]
GetHandleVerifier [0x00729A22+2655074]
GetHandleVerifier [0x0071CA24+2601828]
GetHandleVerifier [0x00538C0A+619850]
GetHandleVerifier [0x00537830+614768]
(No symbol) [0x004205FC]
(No symbol) [0x00425968]
(No symbol) [0x00425A55]
(No symbol) [0x0043051B]
BaseThreadInitThunk [0x768B00F9+25]
RtlGetAppContainerNamedObjectPath [0x77DF7BBE+286]
RtlGetAppContainerNamedObjectPath [0x77DF7B8E+238]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\INSPIRON 3670\Desktop\BingRewards-main\main.py", line 1340, in main
start_rewards()
File "C:\Users\INSPIRON 3670\Desktop\BingRewards-main\main.py", line 1286, in start_rewards
mobile_helper(EMAIL, PASSWORD, MOBILE_SEARCHES)
File "C:\Users\INSPIRON 3670\Desktop\BingRewards-main\main.py", line 1128, in mobile_helper
driver = get_driver(mobile=True)
^^^^^^^^^^^^^^^^^^^^^^^
TypeError: get_driver() got an unexpected keyword argument 'mobile'

Attempting to restart Bing Rewards Automation in 10 minutes...

Wrong This or That answers

Please add the functionalities to give This or that and quiz answers correctly, this functionality already exists in other boys and it would be great if it can be implemented in this bot as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.