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

8

u/yodatrust Nov 27 '19

How do you make your script running 24/7?

2

u/artificial_neuron Nov 27 '19 edited Nov 27 '19

You put everything in a loop that never ends. You don't need a special piece of hardware, just something that will run the script and you'll never turn off.

Eg.

while(true)
    Do the desired activity
    wait for x time