Skip to content

Domejko/flask-marketplace-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marketplace Scraper

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.

Installing

  1. Create local venv and activate it:
python -m venv env

source env/bin/activate
  1. Install requirements:
pip install -e .
  1. Create copy of .env.sample for your PostgreSQL database (need to have PostgreSQL installed):
cp .env.sample .env
  1. Export environment variable:
export FLASK_ENV=development
  1. Run application:
flask run

Saving results to SQL database

  • Add .env file with your db setup corresponding to Settings class format from config.py.
  • In main.py to run_search() function and set parameter add_to_database to True.

Running with uWSGI

Run:

uwsgi app.ini

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published