Master the Art of Web Scraping!

Learn Beautiful soup, web scraping, and sending email alerts through this fun project!

image from https://soshace.com/

Probably a very salient step before we start coding, map out the steps.

  1. Go to amazon.com/any website and find the item you want to purchase.
  2. Take note of the item of choice. This can be getting the URL.
  3. Use BeautifulSoup python module to scrape the website to retrieve the price of the item.
  4. Set up your email using the smtplib module to send the email alerts when the price is below a set threshold in order to purchase.
  • In order for python code to interact with the web, we use the requests module. This module allows you to send HTTP requests through your program. The same way you go on google and you google something and get feedback, that is what sending a HTTP request is. You ask for information and get back a response.
From the screenshot above, the information that I need to track is the price. In this case(109.99)
The output received.

Now onto step 3: Send the email Alert

Here goes the email!

--

--

Technical Writer with a knack for explaining hard things in an easy way. All things tech!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
TechNotes by Abby

Technical Writer with a knack for explaining hard things in an easy way. All things tech!