├── .gitignore ├── README.md ├── license.md └── main.py /.gitignore: -------------------------------------------------------------------------------- 1 | tempCodeRunnerFile.py 2 | test.py 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MsRewardsBot 2 | 3 | A script that will automate microsoft rewards PC searches and mobile searches.
4 | Will add a random string generater next. 5 | 6 | 7 | # UPDATE 8 | 9 | The repo is no longer being mantained. Will likely no longer work. 10 | -------------------------------------------------------------------------------- /license.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Shashwat Singh 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | from selenium import webdriver 2 | from selenium.webdriver.edge.options import Options 3 | from selenium.webdriver.common.keys import Keys 4 | import time 5 | 6 | options = Options() 7 | 8 | mobile_emulation = { 9 | "deviceMetrics": { "width": 375, "height": 812, "pixelRatio": 3.0 }, 10 | "userAgent" : "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Mobile Safari/537.36 Edg/92.0.902.78" 11 | } 12 | 13 | options.add_argument(r"user-data-dir=C:\Users\Shashwat Singh\AppData\Local\Microsoft\Edge\User Data") 14 | options.add_argument("profile-directory=Profile 1") 15 | options.binary_location = r"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" 16 | options.add_experimental_option("detach", True) 17 | 18 | driver = webdriver.Edge(options = options) 19 | 20 | x = 0 21 | string = "aqwertyuiopasdfghjklzxcvbnmqwerqwer" 22 | 23 | while(x<35): 24 | string = string[:-1] 25 | driver.get(r"https://www.bing.com/search?q="+string) 26 | x+=1 27 | 28 | driver.close() 29 | 30 | options.add_experimental_option("mobileEmulation", mobile_emulation) 31 | driver = webdriver.Edge(options = options) 32 | 33 | stringmob = "mnbvcxzlkjhgfdsapoiut" 34 | x=0 35 | while(x<21): 36 | driver.get(r"https://www.bing.com/search?q="+stringmob) 37 | x+=1 38 | stringmob = stringmob[:-1] 39 | time.sleep(1) --------------------------------------------------------------------------------