This repository contains a Python application that consists of multiple data pipelines. These pipelines follow the extract, transform, and load design principle. An online housing platform functions as a source of information, as housing details are normalized, they are loaded into Airtable.
The pipelines' data resolves around house listening. It features pipelines to fulfill the following purposes:
A page is opened, containing an overview of house listings. The listing platform account search criteria are applied. During extraction, loading as many available listings as possible is attempted. The little details of the listing are then loaded into Airtable.
Following the overview extraction process, more details about the listing are gathered. The listing details of unsold houses are updated if they are older than one week. Commonly described details from the listing page are extracted. The detailed information is then added to the existing record in Airtable.
Requires https://www.python.org/ (^3.10), Poetry, and Selenium installed onto the target installation system. Furthermore, credentials for the Move.nl housing platform and Airtable API are requisites.
With Python installed on the target system, further installation of Python dependencies is required. Use the Poetry Python dependency manager to install them. Execute the following snippet on a command-line interface (CLI) after navigating to the repository base directory (the folder this file is located in):
poetry install
A simple environment variable configuration is needed for the application to connect to external systems.
Copy, or rename, the example environment configuration example.env
to .env
.
Execute the following snippet in the CLI while in the base repository (or use your preferred file explorer):
cp example.env .env
Then edit the .env
file accordingly with the credentials.
# Username of move.nl account
MOVE_USERNAME=PLACEHOLDER
# Password of move.nl account
MOVE_PASSWORD=PLACEHOLDER
# Personal access token of Airtable API
AIRTABLE_TOKEN=PLACEHOLDER
# The Airtable base identicator where the data will be loaded
AIRTABLE_BASE=PLACEHOLDER
# Airtable table identicator in the base to hold loaded data
AIRTABLE_TABLE=PLACEHOLDER
After installation and configuration, run the application with the following command:
poetry run python housetrack
See Makefile
for additional parameters.