Git Product home page Git Product logo

bing-rewards's Introduction

Computer Engineering &
Hardware Design
PhD student

☰ Details


[Python] [C] [Octave] [Shell]
[KiCAD] [RPI] [Docker] [Git] [Windows] [Linux] [more]
[Jack-mil Github Stats]
[repo_count]

bing-rewards's People

Contributors

dependabot[bot] avatar jack-mil avatar jesmon84 avatar jungx098 avatar web-flow avatar znarfm 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

bing-rewards's Issues

List default config values on the readme

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

Invalid \escape

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?

Add option to open chrome in incognito mode

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

Mobile user agent ignored

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)

Use with flatpak

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.

Mobile Drivers not running

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.

config file?

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!

Mobile not working

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?

Script is just an auto-typer

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

Running via cron signs out of MS account

I ran this on Arch with no issues. I recently migrated to Fedora 36 and have the following:

  1. Chrome installed (google-chrome-stable-107.0.5304.87-1.x86_64)
  2. Python 3.10.7
  3. Cron daemon is via cronie-1.5.7-5.fc36.x86_64
  4. Cron entry is:

15 3,5 * * * DISPLAY=:0 /usr/local/bin/bing-rewards --exe=/usr/bin/google-chrome-stable & > /home/tobfromme/rewards.out 2>&1

  1. Installed bing-rewards via "pip install bing-rewards"
  2. SELinux disabled via "selinux=0" at boot and /etc/selinux/config set to Permissive

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.

Nice, but one issue

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

Chinese Input Method Prevents Search

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.

Screenshot:
屏幕截图 2023-07-31 102024

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.