Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

edoardottt/amazon_tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

amazon_tracker

simple web scraper that scrapes every x minutes the price of n items and sends an e-mail if the price falls down over p (a price selected by you)

Description 📣

It has been developed using bs4, requests, time and smtplib libraries. Opening it, you can see some variables:

  • headers = It's your browser setting. You have to insert YOUR browser header. You can find it typing 'my user agent' on internet.
  • URLS = It's a list that contains the urls of your tracked items.
  • dream_price = It's a list that contains the dream price of i-th element in URLS.
  • from_email = It's the e-mail that sends the notification.
  • to_email = It's the e-mail that receive the notification.
  • from_password = It's the password needed for the from_email.
  • minutes = How many minutes between a check and the next.

It works only with GMail accounts

Download 📡

git clone https://github.com/edoardottt/amazon_tracker.git

Usage 💻

  1. Type on your browser 'my user agent' and paste the result in the header variable content.

  2. Change all the variables you need (from_email, from_password, to_email, URLS, dream_price and minutes).

  3. If you haven't did already, go to https://myaccount.google.com/lesssecureapps and allow it (It's mandatory).

  4. Execute the scraper.py file


edoardoottavianelli.it to contact me.