2024-11-23 22:57:22 +00:00
#!/usr/bin/env bash
set -euxo pipefail
2025-06-08 20:58:28 +00:00
DATA_DIR = "data/rs"
2025-06-08 18:18:38 +00:00
2025-06-08 20:58:28 +00:00
LISTING_FILTER_OPTIONS = " --min-price 2000 --max-price 4000 --min-bedrooms 2 -t rent --available-from $( date +%Y-%m-%d) --last-seen-days 7 --furnish-types furnished "
2025-06-08 18:18:38 +00:00
#LISTING_FILTER_OPTIONS="--min-price 2000 --max-price 2500 --min-bedrooms 2 --max-bedrooms 4 -t rent --available-from $(date +%Y-%m-%d) --last-seen-days 7 --furnish-types furnished --district Islington" # DEBUG: UNCOMMENT ME WHEN TESTING
2025-06-07 12:00:23 +00:00
2025-05-17 23:14:00 +00:00
2025-06-08 18:18:38 +00:00
poetry install
alembic upgrade head # init db
2025-06-01 18:10:09 +00:00
python main.py --data-dir $DATA_DIR dump-listings $LISTING_FILTER_OPTIONS
2025-05-17 23:14:00 +00:00
python main.py --data-dir $DATA_DIR dump-images
python main.py --data-dir $DATA_DIR detect-floorplan
2025-05-18 21:32:16 +00:00
#python main.py --data-dir $DATA_DIR routing --destination-address 'Meta Brock Street' -m transit # NOTE: THIS CONSUMES API CALLS; USE CAREFULLY; add -l to limit number of entries
2025-06-01 18:10:09 +00:00
# python main.py --data-dir $DATA_DIR export-csv -O data/listings.csv # not used anymore - immoweb exporter is used to visualize data instead of csv
python main.py --data-dir $DATA_DIR export-immoweb -O ../immoweb/data/london_geojs.js $LISTING_FILTER_OPTIONS