r/learnpython • • Nov 27 '19

Black Friday hack with python

So I just finished my python script to monitor the price of my target gadget this holiday. It’s going to be heavily discounted soon but it will go to the fastest finger.

I’ve written a python script with BeautifulSoup. I’ve also set email and SMS alerts in the script 😂😂

Was just wondering if there’s any other person doing this for Black Friday and Fastest Finger deals.

Update: Long overdue but just thought I should add that I got the phone.

362 Upvotes

100 comments sorted by

View all comments

1

u/demesm Nov 27 '19

Is it possible to have this go through the entire purchase process automatically as well? Always wondered if you could snipe v deals like that

1

u/bextie Nov 27 '19

It is. Someone mentioned using selenium to control the browser to automatically purchase the item but of course, you have to be more careful with that so you don’t get into an infinite loop of buying stuff.

1

u/artificial_neuron Nov 27 '19

You can using Selenium. It allows you to use a website as if you're a user clicking on things - it makes life easier when JS is involved.

I would have to watch it perform the purchase 10s of times before i would trust it to do things by itself without supervision. Imagine how you would feel if it emptied your bank account and bought 100s of the same item.