bing-rewards


Namebing-rewards JSON
Version 3.3.0 PyPI version JSON
download
home_pageNone
SummaryPerform automated Bing Rewards searches
upload_time2025-07-17 23:40:24
maintainerNone
docs_urlNone
authorjack-mil
requires_python>=3.10
licenseNone
keywords automation bing search pynput
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Bing-Rewards

<div align="center">
<img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/bing-rewards?style=flat-square&label=Python&logo=python&logoColor=yellow">
<a href="https://pypi.org/p/bing-rewards/"> <img alt="PyPi" src="https://img.shields.io/pypi/v/bing-rewards?label=PyPI&style=flat-square&logo=pypi&logoColor=yellow"></a>
<a href="https://pypi.org/p/bing-rewards/"> <img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/bing-rewards?style=flat-square&label=Downloads&color=orange"></a>
<br>
<img alt="PyPI - License" src="https://img.shields.io/pypi/l/bing-rewards?style=flat-square&label=License&color=blueviolet">
</div>

### A CLI app to perform Bing searches
Please submit an issue or pull-request if you have an idea for a feature

- [Features](#features)
- [Installation](#installation)
- [Dependencies](#dependencies)
- [Usage](#usage)
- [Options](#options)
- [Config](#config)
- [Development](#development)


## Features

* Enter random search queries into your browser *a-la* Auto Hotkey.
* Use a mobile user agent to get mobile points (`--mobile`)
* Configurable number of searches with `--count=`
* Install as self-contained python application with minimal dependencies (`pynput`)
* Fine tune delay and set browser executable with [config](#configuration) at `$XDG_CONFIG_HOME` or `%APPDATA%` on Windows
* Not intended as an automated or headless service. Simply assists with what would regularly be a manual task.


> [!Important]
> This was originally created in a different age, when Bing & MS was much simpler and less bloated with AI ~~slop~~ tools. Users have reported a wide variety of success on whether this method works at all with the new systems. See some of the pinned or closed issues for reports from others that may improve success. I maintain the *code* in a working state as an excersie in Python packaging, but do *not* personally use the utility, and **cannot guarantee this method will even generate points anymore**!

## Installation
Bing-rewards is a CLI application distributed on PyPI. You can install it however you prefer to manage Python applications on your system. I recommend `pipx` or `uv`.

### With [`pipx`](https://pipx.pypa.io/stable/) or `pip`
```bash
pipx install bing-rewards
```

### With [`uv`](https://docs.astral.sh/uv/getting-started/installation/)
```sh
uv tool install bing-rewards
```

These commands will make the executable `bing-rewards` available on your PATH.
Look below or try the `--help` flag to see detailed usage.

> [!Tip]
> Use a virtual environment or [`pipx`](https://pypa.github.io/pipx/) to avoid polluting your global package space with executable apps. See: [pipx](https://pypa.github.io/pipx/)

### Locally
Clone the repo and install locally. See: [Developing](#development--contribution)

## Dependencies

- At least Python 3.10

- [pynput](https://github.com/moses-palmer/pynput) (installed with package). Used to control keypresses and type Bing search URLS.
  > [!Warning]
  >  Bing-Rewards *will* take control away from the keyboard while running. **Pynput** performs key presses. i.e., it does not operate headless or in the background.

- `chrome` must be discoverable on the system PATH. [Download Google Chrome](https://www.google.com/intl/en/chrome/).
  If your Chromium based browser has a different name use the `--exe` flag with an absolute path to the browser executable to use (e.g. `--exe=$(which brave-browser)`).
  See also: `"browser-path"` option in the [config](#configuration) file.

- To earn points from searching, you *must* also have logged into [bing.com](https://www.bing.com) with your Microsoft account at least once, to save cookies.

## Usage

> [!Tip]
> Press <kbd>ESC</kbd> to exit early and regain control

Complete mobile and desktop daily points

`$ bing-rewards`

Run 10 searches with mobile user-agent in a new window

`$ bing-rewards -m -c10`

`$ bing-rewards --mobile --count=10`

Complete mobile and desktop daily points using specified Chrome profile "Profile 1"

`$ bing-rewards --profile "Profile 1"`

Run searches sequentially across multiple Chrome profiles

`$ bing-rewards --profile "Default" "Profile 1" "Profile 2"`

Launches Chrome as a subprocess with special flags. Tested on Windows 10 and Linux (Ubuntu + Arch), however it should work on Mac OS as well.

> [!Warning]
> No other instance of chrome.exe can be open when the script runs. Chrome prevents different user agents in each window. The script will run, but Chrome will not appear as Edge


## Options

Running with no options will complete mobile and desktop daily search quota.
The following options are available to change the default behavior.
Options supplied at execution time override any config.
| Flag                       | Option                                                                                                 |
| -------------------------- | ------------------------------------------------------------------------------------------------------ |
| `-h`, `--help`             | Display help and exit                                                                                  |
| `-c`, `--count=N`          | Override the number of searches to complete                                                            |
| `-b`, `--bing`             | Use this flag if Bing is already your default search engine. Bypasses constructing a bing.com URL      |
| `-d`, `--desktop`          | Only use desktop user agent                                                                            |
| `-m`, `--mobile`           | Only use a mobile user agent                                                                           |
| `-n`, `--dryrun`           | Do everything but type the search query                                                                |
| `--exe PATH`               | The full path of the Chrome compatible browser executable (Brave and Chrome tested)                    |
| `--load-delay SEC`         | Override the time given to Chrome to load in seconds                                                   |
| `--search-delay MIN[,MAX]` | Set the time between individual searches, in seconds. Can specify a range to get random delays         |
| `--open-rewards`           | Open the rewards page at the end of the run                                                            |
| `--nowindow`               | Don't open a new Chrome window, just type the keys                                                     |
| `-X`, `--no-exit`          | Do not close the browser after completing a search                                                     |
| `--profile`                | Run searches using specified Chrome profile(s). Multiple profiles can be specified to run sequentially |
| `--ime`                    | Triggers Windows IME to switch to English input by pressing "shift"                                    |

## Config
A config file is also generated in $XDG_CONFIG_HOME or %APPDATA% on Windows
where precise delay modifications can be made. If updates make changes to the default configs, you will have to remove and regenerate the file.

Example config `~/.config/bing-rewards/config.json`
```json
{
    "desktop_count": 30,
    "mobile_count": 20,
    "load_delay": 1.5,
    "search_delay": 2,
    "search_url": "https://www.bing.com/search?FORM=CHROMN&q=",
    "desktop_agent": "Mozilla/5.0 ... <snip>",
    "mobile_agent": "Mozilla/5.0 (Windows Phone 10.0; Android 6.0.1) ... <snip>",
    "browser_path": "C:\\Program Files (x86)\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
}
```
Delay timings are in seconds.
> [!Note]
> The format has slightly changed in version >= 3.0, so delete and regenerate accordingly.

### User agents

The default user agents that are passed to the Chrome process are below.
You may want to experiment with different user agents, or update versions accordingly.
Alternate user agents can be set in the config file.

Edge Browser on Windows 10 desktop:
> Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edge/126.0.0.0

Mobile Edge Browser on Pixel 6 phone:
>  Mozilla/5.0 (Linux; Android 14; Pixel 6 Build/AP2A.240605.024) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.36 Edge/121.0.2277.138


## Words
The [keywords](https://web.archive.org/web/20220523083250/https://www.myhelpfulguides.com/keywords.txt) included in this repo where taken from this site
[https://www.myhelpfulguides.com/2018/07/19/bing-rewards-auto-searcher-with-python-3/](https://web.archive.org/web/20220331033847/https://www.myhelpfulguides.com/2018/07/19/bing-rewards-auto-searcher-with-python-3/).

Their script provided the original inspiration but has since been completely rewritten and expanded.
The original author was contacted for the source of keywords, but declined to respond

## Development

This project is managed by the [`uv`](https://docs.astral.sh/uv) toolchain.
Ensure you have `uv` installed on your system. This is probably available in your package manager,
or can be installed with `pip` or `pipx`

Then, fork the repository on Github and clone to your machine. The first invocation of any `uv` command will install the `bing-rewards` package in editable mode, with the dev dependencies (`ruff` and `pre-commit`) automatically.

Install the defined pre-commit hooks: `uv run pre-commit install --install-hooks`

Launch bing-rewards in the editable dev environment: `uv run bing-rewards --help`

Feel free to open a PR against the `master` branch with additional features or fixes!

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "bing-rewards",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "automation, bing, search, pynput",
    "author": "jack-mil",
    "author_email": "jack-mil <62065280+jack-mil@users.noreply.github.com>",
    "download_url": "https://files.pythonhosted.org/packages/61/9e/800424444979cc15e0a0293630af22b591440a8017092987d1b23a407455/bing_rewards-3.3.0.tar.gz",
    "platform": null,
    "description": "# Bing-Rewards\n\n<div align=\"center\">\n<img alt=\"PyPI - Python Version\" src=\"https://img.shields.io/pypi/pyversions/bing-rewards?style=flat-square&label=Python&logo=python&logoColor=yellow\">\n<a href=\"https://pypi.org/p/bing-rewards/\"> <img alt=\"PyPi\" src=\"https://img.shields.io/pypi/v/bing-rewards?label=PyPI&style=flat-square&logo=pypi&logoColor=yellow\"></a>\n<a href=\"https://pypi.org/p/bing-rewards/\"> <img alt=\"PyPI - Downloads\" src=\"https://img.shields.io/pypi/dm/bing-rewards?style=flat-square&label=Downloads&color=orange\"></a>\n<br>\n<img alt=\"PyPI - License\" src=\"https://img.shields.io/pypi/l/bing-rewards?style=flat-square&label=License&color=blueviolet\">\n</div>\n\n### A CLI app to perform Bing searches\nPlease submit an issue or pull-request if you have an idea for a feature\n\n- [Features](#features)\n- [Installation](#installation)\n- [Dependencies](#dependencies)\n- [Usage](#usage)\n- [Options](#options)\n- [Config](#config)\n- [Development](#development)\n\n\n## Features\n\n* Enter random search queries into your browser *a-la* Auto Hotkey.\n* Use a mobile user agent to get mobile points (`--mobile`)\n* Configurable number of searches with `--count=`\n* Install as self-contained python application with minimal dependencies (`pynput`)\n* Fine tune delay and set browser executable with [config](#configuration) at `$XDG_CONFIG_HOME` or `%APPDATA%` on Windows\n* Not intended as an automated or headless service. Simply assists with what would regularly be a manual task.\n\n\n> [!Important]\n> This was originally created in a different age, when Bing & MS was much simpler and less bloated with AI ~~slop~~ tools. Users have reported a wide variety of success on whether this method works at all with the new systems. See some of the pinned or closed issues for reports from others that may improve success. I maintain the *code* in a working state as an excersie in Python packaging, but do *not* personally use the utility, and **cannot guarantee this method will even generate points anymore**!\n\n## Installation\nBing-rewards is a CLI application distributed on PyPI. You can install it however you prefer to manage Python applications on your system. I recommend `pipx` or `uv`.\n\n### With [`pipx`](https://pipx.pypa.io/stable/) or `pip`\n```bash\npipx install bing-rewards\n```\n\n### With [`uv`](https://docs.astral.sh/uv/getting-started/installation/)\n```sh\nuv tool install bing-rewards\n```\n\nThese commands will make the executable `bing-rewards` available on your PATH.\nLook below or try the `--help` flag to see detailed usage.\n\n> [!Tip]\n> Use a virtual environment or [`pipx`](https://pypa.github.io/pipx/) to avoid polluting your global package space with executable apps. See: [pipx](https://pypa.github.io/pipx/)\n\n### Locally\nClone the repo and install locally. See: [Developing](#development--contribution)\n\n## Dependencies\n\n- At least Python 3.10\n\n- [pynput](https://github.com/moses-palmer/pynput) (installed with package). Used to control keypresses and type Bing search URLS.\n  > [!Warning]\n  >  Bing-Rewards *will* take control away from the keyboard while running. **Pynput** performs key presses. i.e., it does not operate headless or in the background.\n\n- `chrome` must be discoverable on the system PATH. [Download Google Chrome](https://www.google.com/intl/en/chrome/).\n  If your Chromium based browser has a different name use the `--exe` flag with an absolute path to the browser executable to use (e.g. `--exe=$(which brave-browser)`).\n  See also: `\"browser-path\"` option in the [config](#configuration) file.\n\n- To earn points from searching, you *must* also have logged into [bing.com](https://www.bing.com) with your Microsoft account at least once, to save cookies.\n\n## Usage\n\n> [!Tip]\n> Press <kbd>ESC</kbd> to exit early and regain control\n\nComplete mobile and desktop daily points\n\n`$ bing-rewards`\n\nRun 10 searches with mobile user-agent in a new window\n\n`$ bing-rewards -m -c10`\n\n`$ bing-rewards --mobile --count=10`\n\nComplete mobile and desktop daily points using specified Chrome profile \"Profile 1\"\n\n`$ bing-rewards --profile \"Profile 1\"`\n\nRun searches sequentially across multiple Chrome profiles\n\n`$ bing-rewards --profile \"Default\" \"Profile 1\" \"Profile 2\"`\n\nLaunches Chrome as a subprocess with special flags. Tested on Windows 10 and Linux (Ubuntu + Arch), however it should work on Mac OS as well.\n\n> [!Warning]\n> No other instance of chrome.exe can be open when the script runs. Chrome prevents different user agents in each window. The script will run, but Chrome will not appear as Edge\n\n\n## Options\n\nRunning with no options will complete mobile and desktop daily search quota.\nThe following options are available to change the default behavior.\nOptions supplied at execution time override any config.\n| Flag                       | Option                                                                                                 |\n| -------------------------- | ------------------------------------------------------------------------------------------------------ |\n| `-h`, `--help`             | Display help and exit                                                                                  |\n| `-c`, `--count=N`          | Override the number of searches to complete                                                            |\n| `-b`, `--bing`             | Use this flag if Bing is already your default search engine. Bypasses constructing a bing.com URL      |\n| `-d`, `--desktop`          | Only use desktop user agent                                                                            |\n| `-m`, `--mobile`           | Only use a mobile user agent                                                                           |\n| `-n`, `--dryrun`           | Do everything but type the search query                                                                |\n| `--exe PATH`               | The full path of the Chrome compatible browser executable (Brave and Chrome tested)                    |\n| `--load-delay SEC`         | Override the time given to Chrome to load in seconds                                                   |\n| `--search-delay MIN[,MAX]` | Set the time between individual searches, in seconds. Can specify a range to get random delays         |\n| `--open-rewards`           | Open the rewards page at the end of the run                                                            |\n| `--nowindow`               | Don't open a new Chrome window, just type the keys                                                     |\n| `-X`, `--no-exit`          | Do not close the browser after completing a search                                                     |\n| `--profile`                | Run searches using specified Chrome profile(s). Multiple profiles can be specified to run sequentially |\n| `--ime`                    | Triggers Windows IME to switch to English input by pressing \"shift\"                                    |\n\n## Config\nA config file is also generated in $XDG_CONFIG_HOME or %APPDATA% on Windows\nwhere precise delay modifications can be made. If updates make changes to the default configs, you will have to remove and regenerate the file.\n\nExample config `~/.config/bing-rewards/config.json`\n```json\n{\n    \"desktop_count\": 30,\n    \"mobile_count\": 20,\n    \"load_delay\": 1.5,\n    \"search_delay\": 2,\n    \"search_url\": \"https://www.bing.com/search?FORM=CHROMN&q=\",\n    \"desktop_agent\": \"Mozilla/5.0 ... <snip>\",\n    \"mobile_agent\": \"Mozilla/5.0 (Windows Phone 10.0; Android 6.0.1) ... <snip>\",\n    \"browser_path\": \"C:\\\\Program Files (x86)\\\\BraveSoftware\\\\Brave-Browser\\\\Application\\\\brave.exe\"\n}\n```\nDelay timings are in seconds.\n> [!Note]\n> The format has slightly changed in version >= 3.0, so delete and regenerate accordingly.\n\n### User agents\n\nThe default user agents that are passed to the Chrome process are below.\nYou may want to experiment with different user agents, or update versions accordingly.\nAlternate user agents can be set in the config file.\n\nEdge Browser on Windows 10 desktop:\n> Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edge/126.0.0.0\n\nMobile Edge Browser on Pixel 6 phone:\n>  Mozilla/5.0 (Linux; Android 14; Pixel 6 Build/AP2A.240605.024) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.36 Edge/121.0.2277.138\n\n\n## Words\nThe [keywords](https://web.archive.org/web/20220523083250/https://www.myhelpfulguides.com/keywords.txt) included in this repo where taken from this site\n[https://www.myhelpfulguides.com/2018/07/19/bing-rewards-auto-searcher-with-python-3/](https://web.archive.org/web/20220331033847/https://www.myhelpfulguides.com/2018/07/19/bing-rewards-auto-searcher-with-python-3/).\n\nTheir script provided the original inspiration but has since been completely rewritten and expanded.\nThe original author was contacted for the source of keywords, but declined to respond\n\n## Development\n\nThis project is managed by the [`uv`](https://docs.astral.sh/uv) toolchain.\nEnsure you have `uv` installed on your system. This is probably available in your package manager,\nor can be installed with `pip` or `pipx`\n\nThen, fork the repository on Github and clone to your machine. The first invocation of any `uv` command will install the `bing-rewards` package in editable mode, with the dev dependencies (`ruff` and `pre-commit`) automatically.\n\nInstall the defined pre-commit hooks: `uv run pre-commit install --install-hooks`\n\nLaunch bing-rewards in the editable dev environment: `uv run bing-rewards --help`\n\nFeel free to open a PR against the `master` branch with additional features or fixes!\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Perform automated Bing Rewards searches",
    "version": "3.3.0",
    "project_urls": {
        "Changelog": "https://github.com/jack-mil/bing-rewards/blob/master/CHANGELOG.md",
        "Issues": "https://github.com/jack-mil/bing-rewards/issues",
        "Source": "https://github.com/jack-mil/bing-rewards"
    },
    "split_keywords": [
        "automation",
        " bing",
        " search",
        " pynput"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3ad9e31c6f02e08403260fc292dd6589bc1b974d15a2464509c18eba479754dd",
                "md5": "b8002fd77e2ca429b797c25f92898d49",
                "sha256": "1c883d9775c5cbb0b219ab6c0778f166ea0f14eaaad5b0d5d1a552e06cdfbda7"
            },
            "downloads": -1,
            "filename": "bing_rewards-3.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b8002fd77e2ca429b797c25f92898d49",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 108904,
            "upload_time": "2025-07-17T23:40:22",
            "upload_time_iso_8601": "2025-07-17T23:40:22.846616Z",
            "url": "https://files.pythonhosted.org/packages/3a/d9/e31c6f02e08403260fc292dd6589bc1b974d15a2464509c18eba479754dd/bing_rewards-3.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "619e800424444979cc15e0a0293630af22b591440a8017092987d1b23a407455",
                "md5": "cf2e1cd2bdd36be331bdf46650025def",
                "sha256": "f9afec0d63f93ce97779c6e42d81061f89e837cffbab95f396e2554de566b1a3"
            },
            "downloads": -1,
            "filename": "bing_rewards-3.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "cf2e1cd2bdd36be331bdf46650025def",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 108849,
            "upload_time": "2025-07-17T23:40:24",
            "upload_time_iso_8601": "2025-07-17T23:40:24.251888Z",
            "url": "https://files.pythonhosted.org/packages/61/9e/800424444979cc15e0a0293630af22b591440a8017092987d1b23a407455/bing_rewards-3.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-17 23:40:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jack-mil",
    "github_project": "bing-rewards",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "bing-rewards"
}
        
Elapsed time: 0.80910s