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.
To install: python -m pip install -r requirements.txt
- Launch the web server:
python -m flask run
- Then navigate to
127.0.0.1:5000
in a browser. - Enter whitespace seperated list of 5 character Suma product codes to query.
- 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.