Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 924 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 924 Bytes

Amazon-Price-Tracker

Set a maximum price on an Amazon product, receive an email with a purchase link when it's at or below your price!

How it Works:

You'll need to import BeautifulSoup, requests and smtplib!

Requests allows your computer to reach out to a specific URL.
BeautifulSoup parses HTML for data according to parameters you set.
Smtplib (Simple Mail Transer Protocol Library) automates your email to send others or, in this case, yourself, mail.

Step by step

  1. Copy and paste your URL from Amazon inside quotes next to the PRODUCT_URL constant
  2. Indicate the max price as an int next to the MAX_PRICE constant
  3. Copy and paste your email and password inside quotes next to the EMAIL and PASSWORD constants
  4. This code is set up for gmail
  5. If using e-mail other than gmail, research proper host URL and port information on line 27 inside parentheses --> smtplib.SMTP('smtp.gmail.com', 587)