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

7

u/[deleted] Nov 27 '19

I considered doing something similar for a website I like but then realized the website had a function all ready to do what I wanted. I'm not advanced or clever enough to do something like that yet.

1

u/BakingSota Nov 27 '19 edited Nov 28 '19

You’re definitely clever enough.

Check out these libraries:

  • re - for regex magic

  • requests - for html magic

And this chapter in AtBS: https://automatetheboringstuff.com/chapter11/