A simple Flask web application for scraping products from Amazon.nl, eBay.nl and Marktplaats.nl. Provides a division into new and used products and returns results in table format. Search results can be stored in database.
- Create local venv and activate it:
python -m venv env
source env/bin/activate
- Install requirements:
pip install -e .
- Create copy of
.env.sample
for your PostgreSQL database (need to have PostgreSQL installed):
cp .env.sample .env
- Export environment variable:
export FLASK_ENV=development
- Run application:
flask run
- Add
.env
file with your db setup corresponding to Settings class format fromconfig.py
. - In
main.py
torun_search()
function and set parameteradd_to_database
toTrue
.
Run:
uwsgi app.ini