Skip to content

sygfk/bingreward

 
 

Repository files navigation

BingRewards

Coverage Badge, Container Badge, Python safety badge

Coverage Status Codeship Status for kenneyhe/BingRewards Updates Python 3

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+

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

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 accounds
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 type="Live" 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
  • googleTrends
  • wikipedia

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

Known features not supported

  • Quizzes
  • Level 1 support (but see kenney/mobile project)
  • New User registration

References

About

Run daily script to generate gift card

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.9%
  • Shell 2.1%