Computer Engineering &
Hardware Design
PhD student
jack-mil / bing-rewards Goto Github PK
View Code? Open in Web Editor NEWA script to automate daily Bing rewards points
License: MIT License
A script to automate daily Bing rewards points
License: MIT License
This is an odd one. I tried to install Chrome via Flatpak ( https://flathub.org/apps/com.google.Chrome ).
You'll notice the command to execute it is flatpak run com.google.Chrome
. However, bing-rewards doesn't like this:
[user@host]$ bing-rewards -c 2
Doing 2 desktop searches
Unexpected error: [Errno 2] No such file or directory: 'flatpak run com.google.Chrome'
ERROR: Chrome could not be found on system PATH
Make sure it is installed and added to PATH,or use the --exe flag to give an absolute path
I tried putting the flatpak command in a script, but it errors differently:
[user@host]$ bing-rewards -c 2
Doing 2 desktop searches
Traceback (most recent call last):
File "/usr/bin/bing-rewards", line 8, in <module>
sys.exit(main())
File "/usr/lib/python3.10/site-packages/bing_rewards/__init__.py", line 331, in main
desktop()
File "/usr/lib/python3.10/site-packages/bing_rewards/__init__.py", line 310, in desktop
search(
File "/usr/lib/python3.10/site-packages/bing_rewards/__init__.py", line 233, in search
chrome = subprocess.Popen(
File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1847, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/user/runchrome'
Any idea what "Exec format error" may mean? It would help me get around this.
Basically all of it is redundant, as it seems to just type into the text field in any chrome browser
[I set brave it opens bracee] I click away, it starts typing in edge...
Mobile agent doesn't work for me in any browser
just fyi, https://github.com/jjjchens235/bing-rewards and all of the forks got disabled. You might want to consider moving to gitlab.
I assume they care less, considering they are not owned by Microsoft afaik
Hi I have issue when run
Invalid \escape: line 9 column 24 (char 493)
Error parsing JSON config. Please check your modifications.
how to fix this?
The script does not use the config value for search-url but just the hardcoded default URL value.
Basically the title, it'd be nice to know what they are so that it's easier to adjust them.
Also, it looks like the config link on the wiki is broken.
Thanks for making and sharing this tool! Works great
It's possible this is entirely due to user error, but when I run the command to spoof mobile, it doesn't count the searches. Desktop seems to work fine.
Is it something I'm doing wrong? Or did Microsoft change something?
Hi, Is there any simpler way to use MS Edge instead of Chrome while configuring?
this is pretty amazing, I was able to get this working for the most part, but when running this I get an error:
`python3 ./bing_search.py --dryrun
Using database of 14429 potential searches
Doing 34 desktop searches
Search 1: brendasong
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
[3277:3277:0512/005020.825801:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization
[3366:3366:0512/005021.464867:ERROR:gpu_init.cc(426)] Passthrough is not supported, GL is egl
Search 2: rei
Failed to parse JSON adblock resources: EOF while parsing a value at line 1 column 0
Search 3: air quality seattle
[3250:3261:0512/005030.297567:ERROR:udev_watcher.cc(97)] Failed to begin udev enumeration.
Search 4: nc state football
Search 34: scoob
Desktop Search complete! 170 MS rewards points
Doing 40 mobile searches
Search 1: saints
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Opening in existing browser session.
[3250:3250:0512/005314.060649:ERROR:CONSOLE(1)] "[Shields]: Can't request shields panel data. Error: No tab url specified", source: chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/out/brave_extension_background.bundle.js (1)
[3250:3250:0512/005314.061065:ERROR:CONSOLE(1)] "[Shields]: Can't request shields panel data. Error: No tab url specified", source: chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/out/brave_extension_background.bundle.js (1)
[3250:3250:0512/005314.061359:ERROR:CONSOLE(1)] "[Shields]: Can't request shields panel data. Error: No tab url specified", source: chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/out/brave_extension_background.bundle.js (1)
Search 2: google doodle
Search 3: askew
[3250:3250:0512/005322.968921:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: The message port closed before a response was received.", source: chrome://newtab/ (0)
[3250:3250:0512/005322.969416:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: The message port closed before a response was received.", source: chrome://newtab/ (0)
Search 4: brazil vs argentina
Search 40: toys r us
Mobile Search complete! 200 MS rewards points
This is using the Brave Browser
The program is not able to claim mobile rewards as the script is not opening the mobile bing sites. Even after the script runs no mobile points are added.
Just to avoid polluting the history with all the searches made.
Thank you for this little tool, very useful and easy to use.
Edit: I just realized that by doing this, you are not logged in lol. Nvm then
For me it still does not work on either Chrome or Brave (Edge seems to ignore completely mobile user agent). Tried to change user agents, still no luck
I even ran:
taskkill /f /im "chrome.exe"
taskkill /f /im "brave.exe"
before the script. Browser opens, does searches in mobile view, but I still see 0/60 mobile searches.
Maybe agents need to be updated? This is my config:
{
"desktop-count": 34,
"mobile-count": 40,
"load-delay": 1.5,
"search-delay": 2,
"search-url": "https://www.bing.com/search?q=",
"desktop-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36 Edg/83.0.478.37",
"mobile-agent": "Mozilla/5.0 (Windows Phone 10.0; Android 6.0.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Mobile Safari/537.36 Edge/18.19041",
"browser-path": "C:\\Users\\G\\AppData\\Local\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
}
Originally posted by @N190392 in #13 (comment)
does this also does the quizzes?
Originally posted by @spupuz in #13 (comment)
Most of my accounts got banned today lol. i cultivated that for months. i don't know how i got caught. Anyway, as the title suggest, it is nice to have updated search queries.
with the newest version, is there no longer a Bing_search.py config file?
In an older version I was able to set the LOAD_DELAY and SEARCH_DELAY as well as hard set the browser "--exe" to my chromium of choice!
I ran this on Arch with no issues. I recently migrated to Fedora 36 and have the following:
15 3,5 * * * DISPLAY=:0 /usr/local/bin/bing-rewards --exe=/usr/bin/google-chrome-stable & > /home/tobfromme/rewards.out 2>&1
If I launch Chrome manually and sign into my MS account, I can then launch bing-rewards any number of times with no issue. If I have bing-rewards launched via cron, even once, it signs me out. Further, if I launch Chrome manually after the cron job, I am signed out of my MS account.
Due to the default activation of the Chinese input mode by the Microsoft Input Method in Chrome, it becomes impossible to input correct URLs or English keywords during searches, resulting in the inability to obtain rewards.
Perhaps consider adding a flag to simulate pressing the Shift key, so that it can switch to English mode.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.