Skip to content

A WebApp built with Flask that checks the price of an item of any online store and sends and alert to the user when the desired limit is matched

Notifications You must be signed in to change notification settings

munjal83/deal_alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deal Alert

version by Munjal Patel.

This is an application built to allow the periodic scanning of online webstores, to notify users of changes in prices of items they select.

It allows administrators (defined via src/config.py) to add, remove, and edit online stores.

You will need a Mailgun account and API details for the e-mailing to work. E-mails are sent via executing the src/alert_updater.py file. In order to check e.g. every 10 minutes, the file must be executed every 10 minutes. This can be done with a cron job or a Windows service.

It parses the store websites using requests and BeautifulSoup.

It does not work with Stores that dynamically inject content using JavaScript.

It allows users to register, log in, and create and modify their alerts.

Technology stack: MongoDB, Python (Flask & Jinja2), HTML/CSS/Bootstrap, Mailgun.

Installation

  1. Clone the repository (going to a terminal and run git clone git@github.com:schoolofcode-me/price-of-chair.git.
  2. Define your administrator e-mail in src/config.py.
  3. Define your Mailgun API details on src/models/alerts/constants.py.
  4. Create a virtual environment for the repository (run virtualenv --python=python3.5 venv)
  5. Run the Flask server by executing venv/bin/python price-of-chair/src/run.py.
  6. Whenever you want to check prices of items (caution: can take a long time if you have a lot of items!), run venv/bin/python price-of-char/src/alert_updater.py.

About

A WebApp built with Flask that checks the price of an item of any online store and sends and alert to the user when the desired limit is matched

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published