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/BaboJango Nov 27 '19

Lol “hack” but I tried this myself and the email function failed because I hadn’t set up “less secure access” setting turned off. It then worked once I turned it on. Hopefully this helps someone figure it out faster than it took me!

1

u/bextie Nov 27 '19

I won’t advise that you use that method. You can use the other method I mentioned (activating the 2FA and generating an app password). I recommend it because it’s very secure.

But yeah, both methods work fine for this purpose.

1

u/BaboJango Nov 27 '19

Is there extra code that you would need to create to enter in the app password? What does that look like?

1

u/bextie Nov 27 '19

No extra code. You need to generate it from your google account. Search ‘app password ‘ on google.

1

u/BaboJango Nov 28 '19

How does this code get entered if there’s no extra code?