Skip to content

aliasfoxkde/BingRewards

 
 

Repository files navigation

BingRewards

About

BingRewards is an automated point earning script that works with Bing.com to earn points that can be redeemed for giftcards.

Requirements

Python 2.7+ Beautiful Soup (https://www.crummy.com/software/BeautifulSoup/)

Running The Script

Copy config.xml.dist to config.xml
Enter accounts in <accounts> section.
Ensure <events> match accounts or are commented out.

Linux/Mac

$ cd path/to/bingrewards
$ ./main.py

Windows

> cd path\to\bingrewards
> python main.py

Docker

A Dockerfile is included in this repository. You can build your local version as follows:

docker build -t bingrewards .

Once that's built you can run it as follows (make sure you adjust the path to your config.xml)

docker run -it --rm -v `pwd`/config.xml:/usr/src/app/config.xml bingrewards

Config

General

betweenQueriesInterval: Number of seconds between queries
betweenQueriesSalt: Random number of seconds added between queries
betweenAccountsInterval: Number of seconds between accounts
betweenAccountsSalt: Random number of seconds added between accounts
addSearchesDesktop: Number of extra desktop searches
addSearchesDesktopSalt: Random number of added desktop searches
addSearchesMobile: Number of extra mobile searches
addSearchesMobileSalt: Random number of added mobile searches

Accounts

You can have as many account tags as you need.
Note: User-Agent fields are optional. If omitted a random User-Agent will be selected. Use caution when entering a custom User-Agent. If User-Agent is not associated with a common browser Bing might flag you as a bot.
Note: Two-Factor Authentication (2FA) is not supported.

<account disabled="(true|false)">
    <login>email@example.org</login>
    <password>passwordhere</password>
    <ua_desktop><![CDATA[YOUR DESKTOP USER AGENT HERE]]></ua_desktop>
    <ua_mobile><![CDATA[YOUR MOBILE USER AGENT HERE]]></ua_mobile>
</account>

Query Generators

  • bing: Uses today's bing news page. Generates terms which may be partial words.
  • googleTrends: Uses today's google trends, and google suggested searches. This generator generates whole words, generally consistent with a search syntax. These terms are anything trending and can be NSFW or terms for illegal items.
  • wikipedia: Uses today's wikipedia. Generates terms with whole words.

Events

onError: Defines what the script should do when an error occurs durring processing an account.
onComplete: Defines how the script should behave when it completes processing an account.
onScriptComplete: A special event which occurs only once when the script finishes executing.
onScriptFailure: A special event which occurs only once and if the script fails with exception some time after successfully loading the config.

Automating

Linux/Mac: Create cron job
Replace LOCAL_CONFIG_DIR setting with the path to your Bing Rewards folder.
You will also need to update the paths in the command to point to your Bing Rewards folder. The below cronjob will run at 1 am + random(120 minutes). It will save the console output to to a log file

SHELL=/bin/bash
PATH=/usr/bin:$PATH
LOCAL_CONFIG_DIR=/home/bingrewards/etc

0   1   *   *   *   sleep $(($RANDOM \% 120))m && python2 /home/bingrewards/bin/main.py 2>&1 | gzip > /home/bingrewards/var/log/bingrewards/`date "+\%Y-\%m-\%dT\%H:\%M:\%S"`.log.gz

Windows: Use build in Task Scheduler

References

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.0%
  • Batchfile 3.1%
  • Shell 2.9%