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

2

u/[deleted] Nov 27 '19

[removed] — view removed comment

15

u/[deleted] Nov 27 '19

They’re not the same. Beautiful soup is a parser, extracting data from html. Selenium automates a browser to perform actions.

1

u/pulsarrex Nov 27 '19

Can you eli5 what a 'parser' is?

3

u/Conrad_noble Noble1988 Nov 27 '19

I think it means it translates html into user friendly readable text

1

u/OMGpancakeable Nov 27 '19

Not quite “translate”. Parsing: resolve (a sentence) into its component parts and describe their syntactic roles.

1

u/rrjamal Nov 27 '19

It splits data in a way you want. An HTML doc can be a shit ton of words. You'd parse it down to split and retrieve only the bits you care about