Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 888 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 888 Bytes

Suma product pricing scraper

A tool for scraping pricing information from sumawholesale.com. This information is on each product page (although not displayed for logged out users). Useful for bulk purchase orders.

Installation

To install: python -m pip install -r requirements.txt

Usage

  1. Launch the web server: python -m flask run
  2. Then navigate to 127.0.0.1:5000 in a browser.
  3. Enter whitespace seperated list of 5 character Suma product codes to query.

Future development

  • Make requests asynchronously for faster response.
  • On a code which is constructed correctly but has no product, e.g. AB123, rather than raising ValueError, start building a list of these and return that as a response to user.
  • Write some tests :x
  • Containerise the app, freezing dependencies and hopefully making it less brittle.
  • Tart up the form with some CSS and nicer HTML.