Program for crawling Heka apartment listing into csv format.
Download dump directly from Github action artifacts. New dump is generated daily.
Tested with OCaml 4.09.0 and dune 2.0.0
Inspect missing dependencies and install them:
dune external-lib-deps --missing @@default
Run unit tests:
dune runtest
Build the executable:
dune build
Run the program:
dune exec hekadump.exe
column | required | description |
---|---|---|
address | x | |
apartment type | x | e.g. "1h + k" |
apartment size (exact) | this is found if all apartments have same size | |
apartment size (minimum) | minimum apartment size if there are multiple | |
apartment size (maximum) | ||
apartment count | x | count for similar apartments in the building |
rent (exact) | rent if it's same for every apartment of this type | |
rent (minimum) | minimum rent if the apartments have variable rent | |
rent (maximum) | ||
build year | ||
floor count (exact) | ||
floor count (minimum) | some houses have floor count like "4-6" | |
floor count (maximum) | ||
identifier | x | labeled as "kohteen tunnus" in the pages |
district | x | "kaupunginosa" |
url | x | |
latitude | x | latitude in WGS84 coordinate system |
longitude | x | longitude in WGS84 coordinate system |