An Auto-Buy Bot

Python

The silicon shortage has really taken a toll on everything "tech" nowadays. For example - Graphics cards are very hard to come by nowadays if you're not fast enough. Scalpers are buying these high-value, low inventory items and reselling them way above MSRP, and they are using auto-buy bots to accomplish this.

This is actually not too complicated to build. The process consists of finding a website you'd like to do this on and mapping out the buying process. Let's say you go to newegg to buy a graphics card for your desktop. You can have the script start on the graphics card page, click "add to cart", fill out your name, address and credit card info and hit submit. To do this I went through the process once manually to find the xpath (direct ID) of each button or field I would be using. Then I gave that to the script and also told the script to 'click' or 'type in' the info accordingly. I also put a randomized time on each action so the site wouldn't think I was a bot...please don't tell them.

I just built my first computer less than a year ago, and the graphics card was definitely the most stressful part to obtain. Unfortunately I had to resort to "scalper tactics" and make this script to finally obtain one.

I've decided not to share this code to not contribute to potential scalpers, however I am more than happy to provide a demonstration or answer questions upon request.