零、前言
作为世界领先的科技企业,微软在推进其 Bing 搜索引擎上投入了大量资源。通过微软的奖励计划——Microsoft Rewards,用户可以参与有趣的活动,不仅为他们自己赚取积分,还能够加深对 Bing 搜索引擎的使用体验。
这个活动可以借助脚本来简化操作流程,每天只需约 0 分钟的时间投入。
大约需要 30-40 天,即可兑换成 50 元的京东礼品卡。对于一些寻求额外福利的人来说,这或许是一个相对容易的途径。以下这些是微软给我们准备的礼品,9600积分对应的基本都是50元,完成全部任务,每天大约获得200到300的积分。
注意:
以下操作需要安装青龙面板,如果未安装请自行google
虽然有人制作了Docker image for Microsoft-Rewards-bot,但是仍然需要手动设置定时任务等,不如直接在青龙面板上进行部署
一、添加订阅
脚本仓库地址:https://gitlab.com/farshadzargary1997/Microsoft-Rewards-bot
在订阅管理中安装以下填写即可
二、安装依赖
仓库中的requirements.txt
内容如下,部分已经包含在青龙的镜像中,所以需要安装的python和linux依赖如图所示
certifi
chardet
idna
requests
selenium==4.4.3
selenium-stealth
urllib3
ipapi
func_timeout
random-word==1.0.7
pyyaml
pyotp
notifiers
pyvirtualdisplay
webdriver-manager>=3.8.5
undetected-chromedriver
三、可选参数
以上步骤完成后,定时任务中会出现task farshadzargary1997_Microsoft-Rewards-bot/ms_rewards_farmer.py
,但是缺乏相应的参数,需要手动编辑添加(--no-images --dont-check-for-updates --fast --skip-unusual --shuffle --no-webdriver-manager --headless --on-finish exit
)
PS:--headless
不添加不知道为什么运行会报错……
Use optional arguments
--headless
You can use this argument to run the script in headless mode (BAN RISK).--no-images
Prevent images from loading to increase performance and decrease bandwidth.--dont-check-for-updates
Prevents script from checking updates.--shuffle
Randomize the order in which accounts are farmed.--redeem
Enable auto-redeem rewards based on accounts.json goals.--calculator
Opens GUI calculator with custom options. When using this flag the script will not run.--session
Use this argument to create session for each account.--start-at TIME
This argument takes time in 24h format (HH:MM) to run it at the given time.--everyday
This argument makes the script stay open and start again next day at the time you ran it.--fast
This argument reduces delays of the script and makes it faster (use this if you have high speed connection).--superfast
This argument is faster than --fast (use this if you have a very high speed and reliable connection).--account-browser ACCOUNT
This argument opens session for given account if it's already exist else returns error.--error
When you use this argument, bot displays crash errors in terminal when it fails.--telegram TOKEN CHAT_ID
Sends logs to your telegram through your bot. The bot and TOKEN can be created using this official bot. CHAT_ID can be retrieved via this bot and using the/getid
command.--discord WEBHOOK_URL
Use this argument to send logs to your Discord server through a webhook.--skip-unusual
Click on skip for 5 days on unusual activity detection.--browser BROWSER_NAME
Select browser to use for farming from this list ["chrome", "edge", "uc"], UC is undetected chrome and may not work well or doesn't work at all on your device.--skip-shopping
Skips MSN shopping game.--repeat-shopping
Repeat MSN shopping game. (So it runs twice per account consecutively)--no-webdriver-manager
Use system installed webdriver instead of webdriver-manager (Needed for ARM devices).--virtual-display
Use PyVirtualDisplay (intended for Raspberry Pi users).--on-finish ACTION
Action to perform on finish from one of the following: shutdown, sleep, hibernate, exit.--currency CURRENCY
Converts your points into your preferred currency. Available currencies: EUR, USD, AUD, INR, GBP, CAD, JPY, CHF, NZD, ZAR, BRL, CNY, HKD, SGD, THB--skip-if-proxy-dead
skips farming a particular account whose supplied proxy is no longer active.--recheck-proxy
rechecks proxy in case they are reported dead.--dont-check-internet
Bot won't look for internet connection if you use this argument.--print-to-webhook
Bot will send all the message printed to cli to the webhhok. (discord or telegram argument is required).--accounts-file ACCOUNTS_FILE
specify a different account.json file path rather than the default.
四、添加账号
找到青龙的脚本文件夹,然后编辑
一般添加username和password即可,有特殊需求的可以自行添加其他的,支持多账号
[
{
"username": "Your Email",
"password": "Your Password",
"totpSecret": "Your TOTP Secret (optional)",
"pc_user_agent": "your preferred PC user agent",
"mobile_user_agent": "your preferred mobile user agent",
"proxy": "HTTP proxy (IP:PORT)",
"proxy_auth": "username:password",
"goal": "Amazon"
},
{
"username": "Your Email 2",
"password": "Your Password 2",
"totpSecret": "Your TOTP Secret (optional)",
"pc_user_agent": "your preferred PC user agent",
"mobile_user_agent": "your preferred mobile user agent",
"proxy": "HTTP proxy (IP:PORT)",
"proxy_auth": "username:password",
"goal": "Xbox Game Pass Ultimate"
}
]
评论区