A crawler to compare bike prices across different Singapore websites
(prerequisites: install pyenv and virtualenv)
- Create your virtual environment (choose your 3.x python version)
pyenv virtualenv 3.8.3 venv-sgbikecrawler
- Activate your virtual environment
pyenv activate venv-sgbikecrawler
- Install dependencies
pip install -r requirements.txt
Just execute the command line as follow to see how to use:
python src/sgbikecrawler/cli.py --help
For example, to search for a specific bike model:
python3 src/sgbikecrawler/cli.py --model="KTM Duke 200"
To output results to csv:
python3 src/sgbikecrawler/cli.py --model="KTM Duke 200" --csv
You can also put a filter in prices
python3 src/sgbikecrawler/cli.py --model="KTM Duke 200" --min=7000 --max=9000 --csv