Skip to content

A crawler to compare bike prices across different Singapore websites

License

Notifications You must be signed in to change notification settings

sebasrp/sgbikecrawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sgbikecrawler

A crawler to compare bike prices across different Singapore websites

Setup your environment

(prerequisites: install pyenv and virtualenv)

  1. Create your virtual environment (choose your 3.x python version)
pyenv virtualenv 3.8.3 venv-sgbikecrawler
  1. Activate your virtual environment
pyenv activate venv-sgbikecrawler
  1. Install dependencies
pip install -r requirements.txt

Running the script

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

About

A crawler to compare bike prices across different Singapore websites

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages